in reply to sorting hashes
Is this real code? # this should NOT "work"my $rHash = \%hash; for my $k1 = (sort keys %$rHash) #outer key, this works
I suppose you want
Oh, and BTW why thisfor my $k1 (sort keys %$rHash)
my $rHash = \%hash;additional level of referencing? (Given that you do it only to dereference it later)
|
|---|