in reply to Pushing arrays around inside a loop ;-)
When I give $nn some value, and get rid of the 'OUT' filehandle, so that I can run the script you've posted, I find that it does what should be expected: If $nn is set to 11, for example, you get:
v w x y z v w x y z v
The array most certanly is being modified by shift and push, and the snippit you provided demonstrates that. What were you expecting? Maybe there is a scoping issue at work, but if there is, you haven't shown it to us.
And more importantly, what is it that you're trying to do?
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pushing arrays around inside a loop ;-)
by Baratski (Acolyte) on Jan 06, 2005 at 09:42 UTC | |
by demerphq (Chancellor) on Jan 06, 2005 at 09:57 UTC | |
by Baratski (Acolyte) on Jan 06, 2005 at 10:29 UTC |