Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
apparently should be:foreach $var (@somearray) { .... }
Can I take this as a universal? Or, are there obvious situations in which this use of the my is not appropriate? Claudeforeach my $var (@somearray) { .... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Simple question about foreach and my.
by davorg (Chancellor) on Mar 27, 2001 at 18:22 UTC | |
by tilly (Archbishop) on Mar 27, 2001 at 19:24 UTC | |
by voyager (Friar) on Mar 27, 2001 at 20:25 UTC | |
by davorg (Chancellor) on Mar 27, 2001 at 20:29 UTC | |
Re: Simple question about foreach and my.
by arhuman (Vicar) on Mar 27, 2001 at 18:06 UTC | |
Re: Simple question about foreach and my.
by Masem (Monsignor) on Mar 27, 2001 at 18:51 UTC | |
by petral (Curate) on Mar 27, 2001 at 23:39 UTC | |
Re: Simple question about foreach and my.
by THRAK (Monk) on Mar 27, 2001 at 18:35 UTC | |
by Tyke (Pilgrim) on Mar 27, 2001 at 18:53 UTC | |
Re: Simple question about foreach and my.
by Xxaxx (Monk) on Mar 27, 2001 at 19:03 UTC |