in reply to Re^2: Local Module for Time-Hires?
in thread Local Module for Time-Hires?
Time::HiRes object version 1.49 does not match $Time::HiRes::XS_VERSION 1.86 at C:/Perl/lib/DynaLoader.pm line 253.
Perl was finding the .pm for v1.49 and the .dll for v1.86. It was a bad install or a bad lib path.
eval { require Time::HiRes; import Time::HiRes qw(time); };
I think you need to overload internals at compile-time, so you'd have to use
orBEGIN { eval { require Time::HiRes; import Time::HiRes qw(time) } }
BEGIN { eval 'use Time::HiRes qw(time)' }
By removing the eval, you removed the ability to fall back onto the lower-precision CORE::time if Time::HiRes isn't installed.
|
|---|