in reply to Re: 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."

Looks like its a problem with IIS5.

I stripped out and reinstalled AP 820 and changed the code from eval { require Time::HiRes; import Time::HiRes qw(time); }; to use Time::HiRes qw(time); seems fine now.

Replies are listed 'Best First'.
Re^3: Local Module for Time-Hires?
by ikegami (Patriarch) on Jul 03, 2007 at 20:54 UTC

    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

    BEGIN { eval { require Time::HiRes; import Time::HiRes qw(time) } }
    or
    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.