Vaati has asked for the wisdom of the Perl Monks concerning the following question:
Everything I've ever seen/done/read in perl has notuse strict; my @arry = (1,2,3,4,5 ); foreach my $bla ( @arry ) { $bla++; } foreach ( @arry ) { print "$_\n"; }
edit by thelenm: added code tags
janitored by ybiC: Retitle from less-than-descriptive "Okay, I'm needing some clarification."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Variable scoping, foreach loop, alias
by Zaxo (Archbishop) on Jan 23, 2004 at 21:11 UTC | |
|
Re: Variable scoping, foreach loop, alias
by thelenm (Vicar) on Jan 23, 2004 at 21:11 UTC | |
by Paulster2 (Priest) on Jan 23, 2004 at 21:18 UTC | |
|
Re: Variable scoping, foreach loop, alias
by Fletch (Bishop) on Jan 23, 2004 at 21:25 UTC | |
|
Re: Variable scoping, foreach loop, alias
by Roy Johnson (Monsignor) on Jan 23, 2004 at 21:13 UTC |