programming-examples/perl/Hash/Looping Over A Hash.pl

13 lines
180 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/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";
}