sub check_md5 { my( $path, $item ) = @_; # process the MD5 of 'file' # open 'file.md5' # hold its content in memory # compare to the processed MD5 of 'file' # if it matches move to the next file and corresponding .md5 file # if there is an error, send it to the logmd5 subroutine for logging };