Subject: | Add a convenience function that opens the file for you |
One of the most frequent things I use Digest::MD5 for is to check a whole file (similar to "md5sum filename"). There is a convenience function addfile($io_handle). I'd like it even more convenient and take a filename, and open it for me in binmode, and read the whole file. Maybe addfilename($filename)?
It's really just a four line subroutine, for something I use that frequently I'd rather call something with one line than four... :-)
I might even submit a Digest::MD5::Simple that does it, but I figure the best option would be to add it right into Digest::MD5.
Thanks,
Curt