This is an archived low-energy page for bots and other anonmyous visitors.
Please sign up if you are a human and want to interact.
in reply to I use return on a subroutine
As an old C/C++ coder, I probably use it more as a reflex than anything else. But I almost always use return Simplicus
RE: RE: I use return on a subroutine
by Adam (Vicar) on May 25, 2000 at 16:09 UTC
|
Yeah. I tend to use it more often then I don't. It makes the code more readable if you explicitly state what you are returning. But if my routine only returns an error state or the return value is irrelevant then I don't use return. (Its not like Perl knows about void functions) | [reply] |
|