Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Exiting subroutine via nextby ysth (Canon) |
on Dec 07, 2006 at 06:32 UTC ( [id://588267]=note: print w/replies, xml ) | Need Help?? |
I don't really know how to explain the quoted documentation though. I just edited your function to include a return statement, and it still worked the same way.The (poorly worded) documentation doesn't mean next won't leave that scope - it just means you can't use next to resume execution just after of the current eval {}, etc. when there's no loop in the eval {}, etc.
In Section
Seekers of Perl Wisdom
|
|