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

Re^6: help with error 'readline() on unopened filehandle'

by Anonymous Monk
on Feb 03, 2013 at 08:36 UTC ( #1016808=note: print w/ replies, xml ) Need Help??


in reply to Re^5: help with error 'readline() on unopened filehandle'
in thread help with error 'readline() on unopened filehandle'

Don't put a '$' on your file handle. Here's how you open and read from a file:

That is the preferred syntax since perl 5.6.0

See perlintro, Modern Perl , http://perl-tutorial.org/


Comment on Re^6: help with error 'readline() on unopened filehandle'
Re^7: help with error 'readline() on unopened filehandle'
by Anonymous Monk on Feb 04, 2013 at 05:29 UTC
    Well EXCUSE ME!!!!!! Back in my day sonny we didn't put '$' on our filehandle variables and LIKE IT! If you are going in for new fangled paradigms you might as well code in ruby >:(
      You are not excused. If you're going to correct folks, be sure to know what you're talking about first
Re^7: help with error 'readline() on unopened filehandle'
by Anonymous Monk on Feb 04, 2013 at 05:30 UTC
    that's my advice for you ... read a ruby tut. get a hair cut and a JOB!

      that's my advice for you ... read a ruby tut. get a hair cut and a JOB!

      die

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2014-09-20 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls