C:\>perldoc -f pop
    pop ARRAY
    pop     Pops and returns the last value of the array, shortening the
            array by one element. Has an effect similar to

                $ARRAY[$#ARRAY--]

            If there are no elements in the array, returns the undefined
            value (although this may happen at other times as well). If
            ARRAY is omitted, pops the "@ARGV" array in the main program,
            and the "@_" array in subroutines, just like "shift".


C:\>

José.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 12:57 PM
To: [EMAIL PROTECTED]
Subject: Last value in a array?


Hi,

I have a couple of arrays which have different number of values - I need only the last 
value in each - are there a command to do that?

e.g

$array[LAST]  :-)

or maybe a way to count each value in a given array? and then feed the $array[??] with 
that?

Thanks,
Jakob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to