in reply to Re: Lexicals in if() scope gotcha!
in thread Lexicals in if() scope gotcha!
I'm not seeing any errors or warnings using Perl's from 5.6.2 -> 5.9.0. I would be surprised if it would produce any warnings or errors, as this is an idiom that I use myself from time to time (without warnings, I might add).use strict; use warnings; foreach my $foo (1..10 ) { print $foo } foreach my $foo (1..10 ) { print $foo } __END__ 1234567891012345678910
Liz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Lexicals in if() scope gotcha!
by ambrus (Abbot) on Apr 02, 2004 at 19:50 UTC |