Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Exiting subroutine via next

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


in reply to Exiting subroutine via next

why this behaviour ? what is the logic behind it ? wouldn't it be beneficial if the interpreter threw a error for invalid use of next, in this case ?
It's something you shouldn't do without a good reason, hence the warning, but why do you want it to throw an error by default?

In any case, you can use warnings 'all', 'FATAL' => 'exiting'; if that's to your liking.

Log In?
Username:
Password:

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

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

    No recent polls found