... open my $MYFILE , "<$filename" || "Can't open the output file!"; ...