AW: Syntax of Foreach loop

2010-03-31 Thread Thomas Bätzler
Jon Forsyth jon4s...@gmail.com asked: I am truly a beginner. Could someone help me understand this syntax out of a code example from Learning Perl? On line 5 I'm confused as to why my $number is between foreach and the ()? is my $number part of the loop? my declares a variable for the

Re: AW: Syntax of Foreach loop

2010-03-31 Thread Uri Guttman
TB == Thomas Bätzler t.baetz...@bringe.com writes: TB Jon Forsyth jon4s...@gmail.com asked: I am truly a beginner. Could someone help me understand this syntax out of a code example from Learning Perl? On line 5 I'm confused as to why my $number is between foreach and the ()? is my

AW: AW: Syntax of Foreach loop

2010-03-31 Thread Thomas Bätzler
Uri Guttman u...@stemsystems.com wrote: TB == Thomas Bätzler t.baetz...@bringe.com writes: TB with the -w switch or the use warnings; pragma which requires TB variables to be declared before their first use. that is the use strict pragma, not the warnings one. Of course. I knew I