Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Net::Ping results question

by traveler (Parson)
on Aug 22, 2007 at 16:57 UTC ( #634423=note: print w/replies, xml ) Need Help??

in reply to Re: Net::Ping results question
in thread Net::Ping results question

My timeout is set to 2 in the code above bacause of that limit. (It is set in the constructor.)

Replies are listed 'Best First'.
Re^3: Net::Ping results question
by ikegami (Pope) on Aug 22, 2007 at 17:31 UTC

    You said your problem is that you were getting the same result for 2 and 0. I explained that 0 really meant 5. The unmentioned conclusion is that if you were able to successfully ping a machine with a 2 second wait, then you'll also be successful if you wait for 5 seconds, so it's no surprise you get a "success" result with both values.

    Update: Nevermind. Misread the problem

      I must not have been clear. I got results of 2 and 0 (in $delay1, the time the ping took) with the code above. My problem is that I cannot see how I can get 0 with the timeout set to 2, unless 0 means "no reply" which is what 2 (==timeout) seems to mean.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634423]
[james28909]: well i have officially wore my brains out on hash refs and array refs and hash of arrays
[james28909]: push @{$hash{$ref}}, $this, $that, $the_other;
[james28909]: for 0 .. 3 {print $hash{$ref}}$_;
[james28909]: or i guess that is a hash ref
[james28909]: hash of array ref <.<
[james28909]: im also about to embark on porting the discord api to perl, without having to have 400 dependencies...
[james28909]: would be nice to link doscord to irc and other services

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2017-05-01 03:34 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (544 votes). Check out past polls.