in reply to Passing a file handle to a sub. I still don't get it.
use IO::File; $opts{-handle} = IO::File->new($opts{-file}) or die $!; $parser->from_handle(%opts); sub from_handle { my $self = shift; my %opts = @_; while (<$opts{-handle}>) { #... and here we're supposed to read from FH } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing a file handle to a sub. I still don't get it.
by rvosa (Curate) on Jun 09, 2005 at 18:58 UTC | |
by ysth (Canon) on Jun 09, 2005 at 19:21 UTC | |
by mifflin (Curate) on Jun 09, 2005 at 20:17 UTC | |
by ysth (Canon) on Jun 09, 2005 at 20:20 UTC | |
by mifflin (Curate) on Jun 09, 2005 at 20:38 UTC | |
| |
by tlm (Prior) on Jun 09, 2005 at 19:04 UTC | |
by rvosa (Curate) on Jun 09, 2005 at 19:10 UTC | |
by tlm (Prior) on Jun 09, 2005 at 20:20 UTC |