Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to RE: I use return on a subroutine
by anders
|
|