in reply to Common sub as method or function
local *main::timestamp = *Module::Base::timestamp;
It avoids exporting and still allows you to use just timestamp(). Be sure to document the localization though.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Common sub as method or function
by clinton (Priest) on Aug 15, 2007 at 16:28 UTC | |
by dogz007 (Scribe) on Aug 15, 2007 at 16:35 UTC | |
by akho (Hermit) on Aug 15, 2007 at 16:50 UTC | |
by akho (Hermit) on Aug 15, 2007 at 17:06 UTC |