in reply to Re^2: MD 5 hash comparison/checker
in thread MD 5 hash comparison/checker

Command line tools are more useful when they accept file names from the command line.
perl compare.pl file1 file2

But if you prefer to prompt the user, feel free to adjust at will.