I try to adhere to the following rules:
Use a self-explaining name for the sub, this will also explain the return value(s).
Use self-explaining names for the parameters, they are pulled in at the top of the sub, so they are seen immediately.
For subs used outside of the modules use pod.
In reply to Re: Ways of commenting subroutines
by busunsl
in thread Ways of commenting subroutines
by stephen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |