in reply to Examine two files to delete duplicates

You don't have to change the script itself, you just need to change the parameters that you pass it.

./script.pl file1 file2

Just change file1 and file2