in reply to walking an array and unshifting
If there were one or more values after the array name in the unshift call, the script would print "1", then consume all available memory before doing anything else.
update: I should have said "you're not prepending anything to the array.
Also, the script might print more things before running out of memory, if you happen to prepend more than one element at a time, and the second element of that set was not "2" or "4". But the script will still blow up.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: walking an array and unshifting
by smackdab (Pilgrim) on Jun 09, 2002 at 03:53 UTC | |
by graff (Chancellor) on Jun 09, 2002 at 03:56 UTC | |
by smackdab (Pilgrim) on Jun 09, 2002 at 05:23 UTC | |
by dsheroh (Monsignor) on Jun 09, 2002 at 14:30 UTC | |
by Util (Priest) on Jun 09, 2002 at 19:38 UTC |