larsss31 has asked for the wisdom of the Perl Monks concerning the following question:
for my $d (sort {$a cmp $b} keys %{{map {$_ => $hash{$_}{desc}} keys % +hash}} ) { ... ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sort of anonymous hash
by ikegami (Patriarch) on Sep 29, 2009 at 16:47 UTC | |
by larsss31 (Acolyte) on Sep 30, 2009 at 08:07 UTC | |
|
Re: Sort of anonymous hash
by ccn (Vicar) on Sep 29, 2009 at 16:51 UTC | |
by ikegami (Patriarch) on Sep 29, 2009 at 16:54 UTC | |
by johngg (Canon) on Sep 29, 2009 at 19:30 UTC | |
by larsss31 (Acolyte) on Sep 30, 2009 at 08:12 UTC | |
by ikegami (Patriarch) on Sep 30, 2009 at 10:31 UTC | |
by larsss31 (Acolyte) on Sep 30, 2009 at 11:12 UTC | |
|
Re: Sort of anonymous hash
by Anonymous Monk on Sep 29, 2009 at 16:44 UTC |