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 reply to Re: Digest::MD5 and SHA addfile appear to be clearing the buffer
by atcroft
in thread Digest::MD5 and SHA addfile appear to be clearing the buffer
by dt667
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |