How do I sort a Perl hash that has tons of data?

Posted by syker on Stack Overflow See other posts from Stack Overflow or by syker
Published on 2010-05-18T04:01:08Z Indexed on 2010/05/18 13:40 UTC
Read the original article Hit count: 160

Filed under:
|
|

I am sorting a hash in Perl. I encountered an Out of memory error when running my Perl Script:

foreach $key (sort (keys(%hash))) {
   ....
}

How do I sort a hash that has tons of data?

© Stack Overflow or respective owner

Related posts about perl

Related posts about hash