in reply to md5sum check

An alternative to the md5sum pipe is to use Digest::MD5 and keep it all perl:
use Digest::MD5; foreach my $record(@records){ chomp($record); my @arty = split('::',$record); open MD5, '<', $arty[1]; binmode MD5; my $act = Digest::MD5->new->addfile(*MD5)->hexdigest; printf "%s... %s \n", $arty[1], ($act eq $arty[0] ? "ok" : "not ok") +; close MD5; }