|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
RE: I use return on a subroutineby anders (Initiate) |
| on May 26, 2000 at 22:16 UTC ( #15059=note: print w/ replies, xml ) | Need Help?? |
|
Since perl allways returns the value of the last expression, I usually just states $something if the sub's supposed to return some object. For subs that prints stuff, I leave it to print() to decide. If an error occurs, I use return 0 after setting an error value if possible.
In Section
Past Polls
|
|
||||||||||||||||||||||||