Digest::MD5::File adds functionality for easy calculation of MD5 checksums of entire files, directories or URLs to the standard Digest::MD5 module. . Example usage: . use Digest::MD5::File; my $md5 = Digest::MD5->new; $md5->addpath('/path/to/file.txt'); $md5->addpath(\@files); $md5->adddir('/home/tmbg/'); $md5->addurl('http://www.tmbg.com/tour.html'); my $digest = file_md5_hex($file); my $dir_hashref = dir_md5_hex($dir); my $digest = url_md5_hex($url);