"be consistent" | |
PerlMonks |
Re: Scoping of my with foreach loopby mikeB (Friar) |
on Mar 07, 2005 at 19:12 UTC ( [id://437289]=note: print w/replies, xml ) | Need Help?? |
Neither will compile?
No, wait. That's a similarity. :)
Assuming you meant $item in each case, the difference would be in the scope of $item. In the second case it would be limited to the foreach block.
In Section
Seekers of Perl Wisdom
|
|