in reply to Re: array
in thread Getting last value in array
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