in reply to Sorting hash on deep value

At this point I would suggest that you take a step back and consider whether a hash or an array (or, maybe an array of hashes?) might be the best fundamental representation in your program. Because, what you are basically trying to do in this single statement ... what you are probably asking Perl to do ... is to construct and then sort an array on-the-fly. (This will be true if-and-when you get this statement working ...) Well, that's a very expensive thing to do, especially when you don't realize that you're doing it.

Replies are listed 'Best First'.
Re^2: Sorting hash on deep value
by haukex (Archbishop) on Nov 07, 2019 at 07:45 UTC
    Well, that's a very expensive thing to do

    I'd suggest a Benchmark instead of just saying something like that.