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
in thread I use return on a subroutine
by vroom
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |