( And I mean, seriously... where the #$!@& is shift output going?? Is its scope only in () ??? )
Actually, it's scope is the whole while loop. For instance..
for my $foo (@wibble) { print $foo; }
Oh, and $_ is global, as mentioned above (said Pileofrog as though he already knew that...) so the scope won't matter.
UpdateD'oh! Removed stupid '=' sign. Thanks moritz.
In reply to Re: using shift and $_ in loop
by pileofrogs
in thread using shift and $_ in loop
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |