PERL BEGINNERS 24 RE LAST VALUE IN A ARRAY
Date: Fri, 08 Aug 2003 13:40:14 +0200

Subject: RE: Last value in a array?
From: EUROSPACE.SZARINDAR@no-spam (Eurospace Szarindar)

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
Date: vendredi 8 ao=FBt 2003 12:57

=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