Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Sort of anonymous hash

by ikegami (Patriarch)
on Sep 30, 2009 at 10:31 UTC ( [id://798283]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://798283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2024-04-23 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found