9 lines
225 B
Perl
9 lines
225 B
Perl
|
#!/usr/local/bin/perl -w
|
||
|
|
||
|
my %cities = ("Toronto" => "East", "Calgary" => "Central", "Vancouver" => 'West');
|
||
|
|
||
|
while ( ($key, $value) = each %cities )
|
||
|
{
|
||
|
print "Key: $key Value: $value \n";
|
||
|
}
|