On Thursday, June 12, 2003, at 07:30 AM, Hamish Whittal wrote:

I have a hash that looks like:

{ number => {somethings in here} }

Now I need to get at number, not what it references.

If I understand correctly, you're trying to get the lowest number hash key. That we can do. Try:


my $lowest = (sort { $a <=> $b } keys %hash)[0]

Hope that helps.

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to