Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Hello im new to programming i need help

by Anonymous Monk
on Feb 09, 2013 at 23:54 UTC ( #1018003=note: print w/replies, xml ) Need Help??


in reply to Hello im new to programming i need help

Start by Writing subroutines, say one with Safety net...
  • Comment on Re: Hello im new to programming i need help

Replies are listed 'Best First'.
Re^2: Hello im new to programming i need help
by 7stud (Deacon) on Feb 10, 2013 at 01:17 UTC
    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: $!";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018003]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2016-12-03 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (55 votes). Check out past polls.