Search notes:

Perl module File::Compare

use warnings;
use strict;

use File::Compare;


if (compare('a.txt', 'b.txt') == 0) {
  print "a.txt == b.txt\n";
}
else {
  print "a.txt != b.txt\n";
}

if (compare('a.txt', 'c.txt') == 0) {
  print "a.txt == c.txt\n";
}
else {
  print "a.txt != c.txt\n";
}
Github repository PerlModules, path: /File/Compare/script.pl
Perl modules.

Index