Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Hello im new to programming i need help

by 7stud (Deacon)
on Feb 10, 2013 at 01:17 UTC ( #1018007=note: print w/ replies, xml ) Need Help??


in reply to Re: Hello im new to programming i need help
in thread Hello im new to programming i need help

open FILETWO, "$initialfile2" or die "cannot open $initialfile2 for read\n";

In addition:

  • You should use the 3-arg form of open().
  • You should not use bareword filehandles.
  • You should print out the system error that caused the die().

Like this:

open my $INFILE, '<', $fname or die "Couldn't open $fname: $!";


Comment on Re^2: Hello im new to programming i need help
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-07-05 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls