[EMAIL PROTECTED] wrote: > On Fri, May 04, 2007 at 04:05:46AM -0700, John W. Krahn wrote: > >>my @toc_keys = sort { $toc{ $a }{ lines } <=> $toc{ $b }{ lines } } keys %toc; > > I don't think this will do what I want. I want the full hash structure > preserved, not an array of the keys sorted by 'lines'...
perldoc -q "How can I always keep my hash sorted" John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/