in reply to When does while set $_ ?
--Ordinarily you must assign the returned value to a vari able, but there is one situation where an automatic assignment happens. If and only if the input symbol is the only thing inside the conditional of a `while' state ment (even if disguised as a `for(;;)' loop), the value is automatically assigned to the global variable $_.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: When does while set $_ ?
by crenz (Priest) on Aug 01, 2002 at 09:28 UTC | |
by jmcnamara (Monsignor) on Aug 01, 2002 at 10:02 UTC | |
by crenz (Priest) on Aug 01, 2002 at 10:34 UTC |