![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^2: **HomeWork** Printing the found input from an arrayby pKai (Priest) |
on Apr 02, 2008 at 21:11 UTC ( [id://678044]=note: print w/replies, xml ) | Need Help?? |
Which depends on you expectations:
This is a Perl peculiarity I was once also bitten by. Actually Perl will localize the $city for the scope of the for-loop. See perldoc perlsyn.
In Section
Seekers of Perl Wisdom
|
|