In a while expression, the automatic setting of $_ happens only when the content of the parentheses after the while is an expression of the form <HANDLE>. You'll need something like
while ( $_ = $reader->chunk ) {
the lowliest monk
In reply to Re: sub that sets $_
by tlm
in thread sub that sets $_
by holli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |