print() on closed filehandle DATA_1 at compare_names.pl line 33, line 773874 #### #! usr/bin/perl -w use strict; use warnings; print "What is the filepath of Jay's file?\n"; my $first_file = ; print "And the mine?\n"; my $second_file = ; open FIRST, $first_file; open SECOND, $second_file; open DATA_1, "){ my $name_1 = $_; my $match = 0; while(){ my $name_2 = $_; if($name_1 eq $name_2){ $match = 1; last; } } if($match != 1){ print DATA_1 $name_1,"\n"; } } close FIRST; close SECOND; close DATA_1;