in reply to Net::Ping Response

Is this because Net::Ping is timing the perl code and perl is slower than the os binary?
Well, since you use 'external' as the protocol, Net::Ping *is* using your systems ping utility.

Abigail

Replies are listed 'Best First'.
Re: Re: Net::Ping Response
by pg (Canon) on Oct 21, 2003 at 17:28 UTC

    Also I checked the source code for both Net::Ping and Net::Ping::External, and they seem okay to me. They didn’t use timeout value in any funny way.

    Actually on some platform, timeout value is even not used (Net::Ping::External does not pass it to the system ping facility), if that particular ping facility on that platform actually does not support timeout.

Re: Re: Net::Ping Response
by set_uk (Pilgrim) on Oct 21, 2003 at 21:06 UTC
    Yes but the time value for response that was returned did not appear to represent the output that I would have gotten had I used ping from the command line.
    I gave up in the end and put something together using sudo and fping.