[Israel.pm] Can anyone explain my mistake ?

Amir E. Aharoni amir.aharoni at gmail.com
Wed Jun 10 02:39:31 PDT 2009

On Wed, Jun 10, 2009 at 12:03, Richie Sevrinsky<richie at mamash.com> 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


"We're living in pieces,
 I want to live in peace." - T. Moore

More information about the Perl mailing list