Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Exiting subroutine via next

by ysth (Canon)
on Dec 07, 2006 at 06:32 UTC ( [id://588267]=note: print w/replies, xml ) Need Help??


in reply to Re: Exiting subroutine via next
in thread Exiting subroutine via next

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://588267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-24 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found