Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Exiting script from subs

by Trix606 (Monk)
on Apr 15, 2005 at 13:56 UTC ( #448163=note: print w/ replies, xml ) Need Help??


in reply to Exiting script from subs

I tend to think of subs as something you are going to return back from unless there was a grievous error. The only exception would be a specificly named termination()or some such sub that might be used to consolidate end-of-program tasks. As programs grow in size exiting from a sub sets up a trap that is too easy to fall into.


Comment on Re: Exiting script from subs

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2015-08-30 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (351 votes), past polls