Help for this page
foreach my $city ( @myCities ) { # $city is local to this loop only! } print "$city"; #there's no $city in scope!
my $city; # now is scoped to the whole package! foreach $city ( @myCities ) { ... } print "$city"; # works as expected!