Rob Dixon wrote:
Hamish Whittal wrote:
Ok, thanks Sudarshan, but why did this not work?
pop ( keys (%hash) );
'pop' operates on an array, not a list. This would work
my @keys = keys %hash; my $key = pop @keys;
I guess you meant shift (@keys), pop will return the last key returned by keys.
HTH,
Rob
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]