in reply to sub that sets $_
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sub that sets $_
by ikegami (Patriarch) on Jun 28, 2005 at 15:19 UTC | |
by tlm (Prior) on Jun 28, 2005 at 15:32 UTC | |
|
Re^2: sub that sets $_
by holli (Abbot) on Jun 28, 2005 at 10:45 UTC | |
by blazar (Canon) on Jun 28, 2005 at 11:03 UTC |