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 ;
In reply to Re: $_[0] fails for file handle?
by jwkrahn
in thread $_[0] fails for file handle?
by sophate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |