[Israel.pm] Can anyone explain my mistake ?

Berler Chanan chananb at centerity.com
Wed Jun 10 04:02:34 PDT 2009


Thanks all
Chanan

-----Original Message-----
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] 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<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

http://aharoni.wordpress.com

"We're living in pieces,
 I want to live in peace." - T. Moore
_______________________________________________
Perl mailing list
Perl at perl.org.il
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



More information about the Perl mailing list