in reply to $_[0] as a filehandle
This works.my $fh; open $fh, "<$myFile" or die "blah"; myFunc($fh); sub myFunc { my $fh = shift; while(<$fh>) { # do something } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: $_[0] as a filehandle
by sauoq (Abbot) on Oct 29, 2003 at 02:23 UTC | |
by batkins (Chaplain) on Oct 30, 2003 at 11:52 UTC | |
|
Re: Re: $_[0] as a filehandle
by pg (Canon) on Oct 29, 2003 at 02:36 UTC |