http://qs321.pair.com?node_id=652677


in reply to Inconsistant Net::Ping on XP

Which version of Time::HiRes do you have. There was a problem with older versions, but from memory that was 2 or 3 years ago.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Inconsistant Net::Ping on XP
by traveler (Parson) on Nov 23, 2007 at 23:32 UTC
    I stuck in the new version with ppm. Perl clearly finds it, but can't use it. I get the error
    Time::HiRes object version 1.52 does not match $Time::HiRes::XS_VERSIO +N 1.87 at C:/Perl/lib/DynaLoader.pm line 249. Compilation failed in require at C:\John\tools\netcsvdata.pl line 4. BEGIN failed--compilation aborted at C:\John\tools\netcsvdata.pl line +4.
    So this seems to mean that the 1.87 pm file is trying to use some object version of the old 1.52. I've not had this error before? What do I do? Thanks.
      Looks like a bungled installation. You've got version 1.87 of HiRes.pm, but version 1.52 of HiRes.dll.

      PPM doesn't usually produce this sort of problem ... try doing the 'ppm install Time-HiRes' again. (You might need to ppm remove Time-Hires first.)

      Cheers,
      Rob
      I stuck in the new version with ppm.

      PPM doesn't (usually) make that kind of mistake, so perhaps you would explain what you actually did?

      Where did you find the 1.87 ppd? What command(s) did you use to install it?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Well, this was educational... It seems that Time::HiRes normally lives in lib since it comes with perl. ppm installs to site/lib. So perl was using the old one. I renamed that copies in the lib directory and perl now uses the correct (new) library. Thanks all!
Re^2: Inconsistant Net::Ping on XP
by traveler (Parson) on Nov 23, 2007 at 23:15 UTC
    I have 1.52. ppm found a newer one and I will try upgrading that. In an old post you mentioned updating the dll. I will see if the new Time::HiRes fixes things. Thanks.

      I see cpan has 1.97, but (again from memory) version 1.68? comes to mind. If you can't find a version newer than that as a ppm and you don't have the option to build the cpan version, /msg me and I'll send you a zip file.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.