Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: sorting hashes

by blazar (Canon)
on Apr 20, 2005 at 07:28 UTC ( [id://449510]=note: print w/replies, xml ) Need Help??


in reply to sorting hashes

my $rHash = \%hash; for my $k1 = (sort keys %$rHash) #outer key, this works
Is this real code? # this should NOT "work"

I suppose you want

for my $k1 (sort keys %$rHash)
Oh, and BTW why this
my $rHash = \%hash;
additional level of referencing? (Given that you do it only to dereference it later)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-25 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found