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) { .... }
In reply to Simple question about foreach and my. by Xxaxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |