[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] pop (keys %hash) ?



@listKeys = (keys %hash);
$lastkey = pop @listKeys;

I'd like to know if there is a way to write this code
on one line. Something like :

$lastkey = pop (keys %hash);

Perl tells me that the argument must be an array.
Thanks
JF Jobidon

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org