in reply to Re: Passing a file handle to a sub. I still don't get it.
in thread Passing a file handle to a sub. I still don't get it.
And the callee:#... blah blah blah open(FH, $opts{-file}); $opts{-handle} = *FH; return $parser->from_handle(%opts); #... la dee da
#... stick out left leg while ( readline($opts{-handle}) ) { if ( $_ ) { # ... frobnicate } } # return right leg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing a file handle to a sub. I still don't get it.
by QM (Parson) on Jun 09, 2005 at 21:04 UTC |