Thanks all
Chanan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Amir E. Aharoni
Sent: Wednesday, June 10, 2009 11:40 AM
To: Perl in Israel
Subject: Re: [Israel.pm] Can anyone explain my mistake ?

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
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.56/2161 - Release Date: 06/09/09 
18:08:00

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to