Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Exiting script from subsby Trix606 (Monk) |
on Apr 15, 2005 at 13:56 UTC ( [id://448163]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|