问题
any one may have an idea of realizing the function of "diff" command with perl? Thanks
回答1:
You can use the CPAN module Algorithm::Diff for computing the difference between two files or lists.
回答2:
There's a diff in the Perl Power Tools on CPAN.
来源:https://stackoverflow.com/questions/5498569/how-to-implement-diff-with-perl