The stupid question is the question not asked | |
PerlMonks |
Re: Pop/shift/delete on arrayby monarch (Priest) |
on Jul 14, 2005 at 08:34 UTC ( [id://474795]=note: print w/replies, xml ) | Need Help?? |
let's say you have an array that looks like this
Let's push onto this array: outputs cat,dog,mouse,tiger. Let's pop from this array: outputs tiger. Let's shift from this array: outputs cat. Note that both shift and pop remove the value from the array that you obtained: prints dog,mouse.
In Section
Seekers of Perl Wisdom
|
|