in reply to Dealing with diff command within perl
First of all, you can easily install Algorithm::Diff yourself, see Yes, even you can use CPAN.
Second, if you read diff, you will find that the exit status for identical files is 0 and otherwise nonzero. If you read system, you will find that it returns the exit status of the program. So you might just want to use that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dealing with diff command within perl
by bart (Canon) on Nov 26, 2011 at 20:59 UTC | |
by surajsam (Initiate) on Dec 03, 2011 at 03:36 UTC | |
by surajsam (Initiate) on Dec 03, 2011 at 03:39 UTC |