on Thu, 25 Jul 2002 16:18:00 GMT, Zentara wrote: > I checked the files with a hexdiff program and > they are identical. I wonder if Digest::MD5 can > be trusted???
Oh yes, it can. You should reread perldoc Digest::MD5 the md5_hex function expects data as its argument, not a filename. You could use (direct quote from above-mentioned docs): use Digest::MD5; my $file = shift || "/etc/passwd"; open(FILE, $file) or die "Can't open '$file': $!"; binmode(FILE); print Digest::MD5->new->addfile(*FILE)->hexdigest, " $file\n"; -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]