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 :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Export again
by Eliya (Vicar) on Feb 21, 2011 at 17:40 UTC | |
by Cagao (Monk) on Feb 22, 2011 at 09:33 UTC | |
by Eliya (Vicar) on Feb 22, 2011 at 09:56 UTC | |
by Cagao (Monk) on Feb 22, 2011 at 10:40 UTC | |
Re: Export again
by trwww (Priest) on Feb 21, 2011 at 19:48 UTC | |
by Cagao (Monk) on Feb 22, 2011 at 09:19 UTC | |
Re: Export again
by apomatix (Novice) on Feb 22, 2011 at 00:32 UTC | |
Re: Export again
by ciderpunx (Vicar) on Feb 21, 2011 at 17:50 UTC |