in reply to Re^3: file comparison
in thread file comparison

Oh, in that case just compare the outputs with the cmp program if the outputs are written to files (eg. system("diff", "-s", "--", $filename1, $filename2) returns true if the files are different).

Better, use File::Compare, which is part of the standard dist.