9 lines
188 B
Perl
9 lines
188 B
Perl
$hash{fruit} = apple;
|
|
$hash{sandwich} = hamburger;
|
|
$hash{drink} = bubbly;
|
|
|
|
%reversed = reverse %hash;
|
|
|
|
foreach $key (sort keys %reversed) {
|
|
print "$key => $reversed{$key}\n";
|
|
} |