my $digest = print $ctx->hexdigest, "\n";
That code will result in $digest having a value of 1. That's probably not what you meant.
$ perl -e ' > use Digest::MD5; > $ctx = Digest::MD5->new(); > open FILE, q{<}, q{xxx} or die $!; > $ctx->addfile( *FILE ); > $digest = print $ctx->hexdigest(), qq{\n}; > print qq{-->$digest<--\n};' cc88f0aa880a1b97b84bfd0ebc420fa7 -->1<-- $
I hope this is useful.
Cheers,
JohnGG
In reply to Re^2: MD5 Hash
by johngg
in thread MD5 Hash
by Karger78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |