You say "two files" but open a third:
open (FH1, @ARGV[2]); [download]
What's that about?
In reply to Re: find unique lines in two files by tybalt89 in thread find unique lines in two files by Anonymous Monk