in reply to Re^2: Internally, how do for() and while() differ?
in thread Internally, how do for() and while() differ?

I meant while's scalar context, and only this iterator.

Should be documented ( perlsyn ? )

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

UPDATE

see 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.

  • Comment on Re^3: Internally, how do for() and while() differ?