Re: Best way to compare to files in Perl

Bill Luebkert <[email protected]>
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <[email protected]>
On 9/23/2010 3:33 PM, John W Kennedy wrote:
> Once you have used a digest, /if/ you have an apparent duplicate (or more than one), just do a direct check to see whether they're truly equal. Then you can be absolutely certain.

I agree - if the file isn't excessively large and appears
to be the same length as an existing file, has matching
digest/cksum/whatever checks you make and the frequency
of these checks isn't that great, you can always do an
actual file comparison as the last resort to prove
duplicity or not and be 100% sure.

The number of times you get through all the checks and
actually have to compare the files should be minuscule.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.