just to update, this is how i accomplished this.
use warnings;
use strict;
use Digest::MD5;
my $file = "$ARGV[0]";
open (my $fh, '<', $file) or die "Can't open '$file': $!";
binmode ($fh);
my $md5 = Digest::MD5->new->addfile($fh)->hexdigest;
print "\n", $file, "\n", $md5, "\n";
my @array = ('d41d8cd98f00b204e9800998ecf8427e', 'd6721344ed0cdc2e8a05
+4a68b7ebc365', 'cee8eb94fd83f8d534bc44bf136ebaa0');
if( $md5 ~~ @array ) {
print "The MD5's match perfectly\n";
} else {
print "The MD5's do NOT match\n";
}
system ( 'pause' );
thanks to you all for helping me with this :) |