Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Digest::MD5 and SHA addfile appear to be clearing the bufferby atcroft (Abbot) |
on Jun 10, 2014 at 18:16 UTC ( [id://1089443]=note: print w/replies, xml ) | Need Help?? |
Instead of using the filehandle, you could just pass the filename to the addfile() method (such as print "SHA224: ", $sha224->addfile($file, "b")->hexdigest, "\n";), which would let the module handle the details. Hope that helps.
In Section
Seekers of Perl Wisdom
|
|