in reply to Entering and exiting subs in style
In your first scenario, it's okay to call exit (that's what it's for!), as long as you document that the subroutine could exit under specific circumstances.
In the second scenario, the goto actually replaces the current entry on the call stack. If you don't know what this means or why you'd want to do it, you probably don't need to use this form.
As a side note, I much prefer calling bar() instead of &bar. Again, if you don't know the difference or why you'd want to do it, you're probably much better off with the parenthesis.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Entering and exiting subs in style
by orderthruchaos (Scribe) on May 26, 2004 at 14:18 UTC |