You even have the logic to process the items from the getfiles subroutine already in place.
Maybe start with the following implementation for routine to see what happens:
sub routine { # identify filepath and name as parameters passed to routine my $file = shift; my $name = shift; print "routine called with '$file', '$name'\n"; }
The next thing would be to give it a proper name. Find out what the routine should do, and then rename it to that.
Good names could be process_file or verify_md5 maybe. Or maybe the routine should do something different, but then its name should be different as well.
In reply to Re: Checking MD5 of files in directory with corresponding MD5 file type
by Corion
in thread Checking MD5 of files in directory with corresponding MD5 file type
by deedo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |