http://qs321.pair.com?node_id=294151


in reply to Force perl to release memory back to the operating system

I think your problem is one of design. Rather than trying to save all the records and sorting them, just iterate through all of them saving only the ones with the thirty highest balances if all you want to do is find the top clients.