Hi,=20
You can use
my $LastValue =3D $ARRAY[ $#ARRAY-1 ];
The pop function suppress the last value of the ARRAY.
Michel
-----Message d'origine-----
De: kof@no-spam [mailto:kof@no-spam
=C0: beginners@no-spam
Objet: Last value in a array?
Hi,
I have a couple of arrays which have different number of values - I n=
eed
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 th=
e
$array[??] with that?
Thanks,
Jakob
--=20
To unsubscribe, e-mail: beginners-unsubscribe@no-spam
For additional commands, e-mail: beginners-help@no-spam