http://www.perlmonks.org?node_id=11111830


in reply to New File Not Working

The first step is to ask Perl to tell you about errors:

open(INFILE, "PSR_Date.txt") or die "Couldn't open input file 'PSR_Date.txt': $!"; open(OUTFILE, ">PSR_OutputDate.txt") or die "Couldn't create output file 'PSR_OutputDate.txt': $!";

Replies are listed 'Best First'.
Re^2: New File Not Working
by jalopez453 (Acolyte) on Jan 24, 2020 at 17:49 UTC

    I did do this in regards to verifying the files. I removed the code and everything worked fine. I ended up finding my mistake, I was missing "my" in front of "$line" Thank you for the help.