and avoid some of the problems that can happen with local when the previous $_ is aliased to something that objects to being localized.while (my $_ = <>) { }
But, no, I don't see while() changing to no longer have the modified $_ available after the loop.
In reply to Re: Auto-localization of $_ in while(<>)
by ysth
in thread Auto-localization of $_ in while(<>)
by repellent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |