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


in reply to Re: Possible to treat an HTML::TreeBuilder object as a filehandle? (perldoc -f open)
in thread Possible to treat an HTML::TreeBuilder object as a filehandle?

The filehandle doesn't kill the program my script anymore, however, I'm no closer to treating the HTML tree as a filehandle. I'm getting the following output:

readline () on closed filehandle $fh at project12.pl on line 48. readline () on closed filehandle $fh at project12.pl on line 48. readline () on closed filehandle $fh at project12.pl on line 48. readline () on closed filehandle $fh at project12.pl on line 48.
J -
  • Comment on Re^2: Possible to treat an HTML::TreeBuilder object as a filehandle? (perldoc -f open)
  • Download Code

Replies are listed 'Best First'.
Re^3: Possible to treat an HTML::TreeBuilder object as a filehandle? (perldoc -f open)
by Anonymous Monk on Feb 11, 2014 at 10:16 UTC
    What program?
    $ perl -wle " open my($fh), q{<}, \q{hi}; print readline $fh; close +$fh; print readline $fh; " hi readline() on closed filehandle $fh at -e line 1.