programming-examples/perl/Hash/Looping Over A Hash.pl
2019-11-15 12:59:38 +01:00

13 lines
180 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
my %where=(
G => "g",
L => "l",
I => "i",
S => "s"
);
for (keys %where) {
print "$_ lives in $where{$_}\n";
}