open (FILE1, '<', "pathtofile1") or die "unable to open pathtofile1 $!"; open (FILE2, '<', "pathtofile2") or die "unable to open pathtofile2 $!";