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>


Reply via email to