On Jun 3, 2011, at 8:45 AM, Alan Haggai Alavi wrote:

> Here, the scope of $name is limited to the foreach loop and not outside it. 
> So, you will have to declare the variable again for use outside the loop.

        But wouldn't that make the second "$name" a different variable?  I'm 
not at my computer to try it.

Marc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to