in reply to using shift and $_ in loop
( 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using shift and $_ in loop
by Anonymous Monk on Oct 22, 2009 at 14:10 UTC |