Skip Menu |

This queue is for tickets about the Digest-MD5 CPAN distribution.

Report information
The Basics
Id: 7350
Status: resolved
Priority: 0/
Queue: Digest-MD5

People
Owner: Nobody in particular
Requestors: curt [...] tilmes.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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