X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFile%2FCompare.pm;h=0b73d7c76570925aea187ba67642eb42091f0171;hb=fa76202e3aa22e9755f1a461416769c368b47afc;hp=667e7cb883123c2cdc8c88204757b8c01b717b3c;hpb=ee8c7f5465f003860e2347a2946abacac39bd9b9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/File/Compare.pm b/lib/File/Compare.pm index 667e7cb..0b73d7c 100644 --- a/lib/File/Compare.pm +++ b/lib/File/Compare.pm @@ -1,24 +1,20 @@ package File::Compare; -use 5.005_64; +use 5.006; use strict; +use warnings; our($VERSION, @ISA, @EXPORT, @EXPORT_OK, $Too_Big); require Exporter; use Carp; -$VERSION = '1.1002'; +$VERSION = '1.1003'; @ISA = qw(Exporter); @EXPORT = qw(compare); @EXPORT_OK = qw(cmp compare_text); $Too_Big = 1024 * 1024 * 2; -sub VERSION { - # Version of File::Compare - return $File::Compare::VERSION; -} - sub compare { croak("Usage: compare( file1, file2 [, buffersize]) ") unless(@_ == 2 || @_ == 3); @@ -170,8 +166,8 @@ is basically equivalent to =head1 RETURN -File::Compare::compare return 0 if the files are equal, 1 if the -files are unequal, or -1 if an error was encountered. +File::Compare::compare and its sibling functions return 0 if the files +are equal, 1 if the files are unequal, or -1 if an error was encountered. =head1 AUTHOR