local *main::timestamp = *Module::Base::timestamp;
and:
use Module::Base qw(timestamp);
I think I would lean towards the latter being better practice. It is what I usually do, which makes me wonder why I came up with the local method first...
In reply to Re^3: Common sub as method or function
by dogz007
in thread Common sub as method or function
by clinton
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |