in reply to Re^3: Sort of anonymous hash
in thread Sort of anonymous hash

Yes. They're called variables.
for my $d (sort {$descs->{$a} cmp $descs->{$b}} keys %{ $descs = {map +{$_ => $hash{$_}{desc}} keys %hash}} ) { ... ... }

Replies are listed 'Best First'.
Re^5: Sort of anonymous hash
by larsss31 (Acolyte) on Sep 30, 2009 at 11:12 UTC
    You made me laugh (for real!) Anyway, inline declaration is actually the solution closest to what i initially thought. Thanks and have a nice day