Hi, 

You can use

my $LastValue = $ARRAY[ $#ARRAY-1 ];

The pop function suppress the last value of the ARRAY.


Michel

-----Message d'origine-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Date: vendredi 8 août 2003 12:57
À: [EMAIL PROTECTED]
Objet: 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]

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

Reply via email to