On Sunday 20 Jun 2010 11:41:42 philge philip wrote:
> hi
> 
> can someone tell me how i can sort by keys from a hash (huge data) stored
> using Data::Dumper?
> 

You need to do:

[code]
my @keys = sort { $a cmp $b } keys(%hash);
[/code]

Is it causing a memory overflow?

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to