Just another Perl shrine | |
PerlMonks |
Re: Loop controls transcends scope?by merlyn (Sage) |
on Jan 15, 2009 at 17:43 UTC ( [id://736609]=note: print w/replies, xml ) | Need Help?? |
It's not violating scope. last/next/redo/goto respect dynamic scope (determined by runtime call stack) not lexical scope. Think of it as similar to the difference between local() and my().
In Section
Seekers of Perl Wisdom
|
|