|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Re: arrayby ichimunki (Priest) |
| on Jul 18, 2002 at 20:32 UTC ( #183039=note: print w/ replies, xml ) | Need Help?? |
|
Sara/DS/Amoura/whatever, the pop(@array) function is destructive. It will remove the last element from the array (just as shift will remove the first element), it is therefore not a good substitute for $array[-1] under most circumstances. If you don't mind that your array will now be incomplete pop away. :)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||