|Don't ask to ask, just ask|
Export againby Cagao (Monk)
|on Feb 21, 2011 at 17:09 UTC||Need Help??|
Cagao has asked for the
wisdom of the Perl Monks concerning the following question:
I want to have a standard module which simply "uses" a load of other modules which all my classes/scripts use.
These are things like Data::Dumper and Time::HiRes
Time::HiRes is causing me a major headache, and I'm more interested in how to deal with this issue...
In my standard module I have Time::HiRes qw(gettimeofday);, which imports the gettimeofday() method to that namespace.
I then use my standard module and try to export gettimeofday() again, but it ain't working.
Undefined subroutine &MyStandardModules::gettimeofday
is as close as I can get
I'm trying crazy things like *gettimeofday = \$Time::HiRes::gettimeofday; but just confusing myself even more since I ain't got a clue what that really means :)