![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
RE: RE: I use return on a subroutineby Adam (Vicar) |
on May 25, 2000 at 20:09 UTC ( #14787=note: print w/replies, xml ) | Need Help?? |
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)
In Section
Past Polls
|
|