If you use backticks instead of system() you can store the output of diff into an array. If that array is empty, the files are identical. If not, print your header and the array.
In reply to Re: Dealing with diff command within perl
by jethro
in thread Dealing with diff command within perl
by surajsam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |