Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: reading the wrong input file out of 2 opened file

by marto (Cardinal)
on Jan 24, 2022 at 15:26 UTC ( [id://11140798]=note: print w/replies, xml ) Need Help??


in reply to reading the wrong input file out of 2 opened file

Additionally, from open, use the three arg open:

open(my $fh, "<", "input.txt") or die "Can't open < input.txt: $!";

Also: http://modernperlbooks.com/mt/2010/04/three-arg-open-migrating-to-modern-perl.html.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found