http://www.perlmonks.org?node_id=1016808


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'

Replies are listed 'Best 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

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