Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: New File Not Working

by Corion (Pope)
on Jan 24, 2020 at 17:33 UTC ( #11111830=note: print w/replies, xml ) Need Help??


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 (Novice) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-05-27 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?