in reply to Re^3: comparing lines of data
in thread comparing lines of data

Better to let open report why opening fails should that occur:

open(my $fh, "<", $filename) or die "Can't open $filename: $!";