On Wed, Jun 10, 2009 at 12:03, Richie Sevrinsky<[email protected]> wrote:
> perldoc perlsyn:
>
>   Foreach Loops
>       The "foreach" loop iterates over a normal list value and sets the
> variable VAR to be each element of the list in turn.  If the variable is
> preceded with the
>       keyword "my", then it is lexically scoped, and is therefore
> visible only within the loop.

Or, to put it short, use strict.

-- 
אמיר אלישע אהרוני
Amir Elisha Aharoni

http://aharoni.wordpress.com

"We're living in pieces,
 I want to live in peace." - T. Moore
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to