sub from_handle { my $self = shift; my %opts = @_; my $fh = $opts{-handle}; while (<$fh>) { #... and here we're supposed to read from FH } }
In reply to Re^4: Passing a file handle to a sub. I still don't get it.
by mifflin
in thread Passing a file handle to a sub. I still don't get it.
by rvosa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |