in reply to $_[0] fails for file handle?
That is because the <> operator has two functions. my $line = <$_[0]> ; is the same as my $line = glob "$_[0]" ; while my $line = <$FH> ; is the same as my $line = readline $FH ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: $_[0] fails for file handle?
by sophate (Beadle) on Jul 17, 2012 at 04:55 UTC |