Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: open file

by Riales (Hermit)
on Mar 21, 2012 at 21:49 UTC ( #960873=note: print w/replies, xml ) Need Help??


in reply to I try to write script which try to open a text file and read first line from it

With regard to the different natures of errors that may be generated, here's a hint:

When you do the following line in sub get_record, why do you think you die with Cannot open file: $!? What do you think $! is? Try searching for it in perldoc perlvar for more info!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://960873]
help
Chatterbox?
[runrig]: Total Eclipse
[runrig]: (of the Sun)
[runrig]: Is happening now...will get to about 70% where I am
[LanX]: enjoy :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2017-08-21 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (324 votes). Check out past polls.

    Notices?