Hi. You're right that option 3 is poor from a documentation point of view — the person reading the main script and encountering the timestamp function can't see where it's defined.
But you don't have to go as far as option 2 and fully qualify the name every time. Just change the use statement to:
use MyModule qw<timestamp>;
and then it's clear exactly where that function is coming from.
Smylers
In reply to Re: Module Style and Usage
by Smylers
in thread Module Style and Usage
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |