in reply to Re: Traversing through HoH
in thread Traversing through HoH
I think I want to make my code less wordy.. for example, I would prefer:
print map $_,"\t",$hash{$_},"\n", sort keys %hash
the above code as compared to
foreach my $key (sort keys %hash){ print $key,"\t",$hash{$key},"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Traversing through HoH
by Anonymous Monk on Apr 05, 2012 at 01:20 UTC |