Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
for $key ( sort {$a<=>$b} keys %hash) { print "($key)->($hash{$key})\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I keep the first key in a sorted hash?
by Athanasius (Archbishop) on Feb 17, 2014 at 12:24 UTC | |
Re: How do I keep the first key in a sorted hash?
by Anonymous Monk on Feb 17, 2014 at 11:31 UTC | |
by Not_a_Number (Prior) on Feb 17, 2014 at 12:18 UTC | |
by Laurent_R (Canon) on Feb 17, 2014 at 18:42 UTC | |
Re: How do I keep the first key in a sorted hash?
by pajout (Curate) on Feb 17, 2014 at 12:32 UTC |