foreach my $city ( @myCities ) { # $city is local to this loop only! } print "$inner_city";