![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: **HomeWork** Printing the found input from an arrayby ikegami (Patriarch) |
on Apr 02, 2008 at 20:58 UTC ( [id://678042]=note: print w/replies, xml ) | Need Help?? |
Not really. There are now two variables named city (one localized to the loop and a new one in the outer scope), and one of them is always undef. The purpose of the loop is to validate $inner_city, so why is $city being printed? Fix:
In Section
Seekers of Perl Wisdom
|
|