good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Exiting script from subsby graq (Curate) |
on Apr 15, 2005 at 16:34 UTC ( [id://448250]=note: print w/replies, xml ) | Need Help?? |
I would personally not want to hide an exit statement inside a block like that. It strikes me that what you want is for the program to end (as opposed to abend) based on certain criteria. This makes it look a little like this: Obviously the string 'exit' is not that desirable (and for the sake of your example), but the return code should depend on what the function does (and allow for further scope).
In Section
Seekers of Perl Wisdom
|
|