in reply to Module Style and Usage
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Module Style and Usage
by Tanktalus (Canon) on Sep 07, 2005 at 14:30 UTC |