in reply to Re^2: Common sub as method or function
in thread Common sub as method or function
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...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Common sub as method or function
by akho (Hermit) on Aug 15, 2007 at 16:50 UTC | |
Re^4: Common sub as method or function
by akho (Hermit) on Aug 15, 2007 at 17:06 UTC |