in reply to Alternative to sort Hash
Any compact idea I am unable to think of?
Just remove the 0-valued entry from the hash before you start? That's a simple way not to choose it.
It isn't entirely clear to me from your description precisely what it is you want to achieve, unfortunately. Perhaps a test would help? ie: How to ask better questions using Test::More and sample data
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Alternative to sort Hash
by IB2017 (Pilgrim) on Dec 06, 2019 at 09:58 UTC | |
by hippo (Archbishop) on Dec 06, 2019 at 11:30 UTC | |
by Anonymous Monk on Dec 06, 2019 at 10:10 UTC |