in reply to Re^4: Checking MD5 of files in directory with corresponding MD5 file type
in thread Checking MD5 of files in directory with corresponding MD5 file type
Maybe what you're thinking is chomp(@md5_file); my $md5_re = join "|", map quotemeta, @md5_file; and then later if ($md5=~/^($md5_re)$/){.
But why not use a hash?
|
|---|