Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I meant while's scalar context, and only this iterator.
Should be documented ( perlsyn ? )
Cheers Rolf
UPDATEsee perlop#IO-Operators : > If and only if the input symbol is the only thing inside the conditional of a while statement (even if disguised as a for(;;) loop), the value is automatically assigned to the global variable $_ , destroying whatever was there previously. In reply to Re^3: Internally, how do for() and while() differ?
by LanX
|
|