Thanks it was very useful. Now, I need to do the same with sorted hash array. Can I?
Thanks Amr -----Original Message----- From: Ing. Branislav Gerzo [mailto:[EMAIL PROTECTED] Sent: Saturday, May 07, 2005 6:16 AM To: beginners@perl.org Subject: Re: The last element amr [a], on Saturday, May 7, 2005 at 16:13 (-0700) thinks about: a> I try the pop and it does the job but I think there is another way? here are some examples comes to my mind: use strict; use warnings; my @list = 1 .. 10; print $list[-1], "\n"; print $list[$#list], "\n"; print [EMAIL PROTECTED], "\n"; print pop @list, "\n"; -- ...m8s, cu l8r, Brano. [I am Bob Vila of Borg: This Old House is irrelevant.] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>