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)
In reply to Re: sorting hashes
by blazar
in thread sorting hashes
by olecs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |