Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::Ping -- other output formats?

by Falkkin (Chaplain)
on Apr 19, 2001 at 00:14 UTC ( #73642=note: print w/replies, xml ) Need Help??


in reply to Net::Ping -- other output formats?

Short answer: for now, no.

Long answer: Eventually Net::Ping will be extended in some way (either by parsing results of Net::Ping::External, or perhaps through a new module, Net::Ping::HiRes, to allow for exactly the functionality you want. Look for this functionality in a couple of months... I'm working on it. :)

Replies are listed 'Best First'.
Re: Answer: Net::Ping -- other output formats?
by tye (Sage) on Apr 19, 2001 at 00:21 UTC

    Can't you just use Time::HiRes and calculate how long it takes for the ping() method call to take? I realize you'll get a bit more overhead in the calculation than if the module did it for you, but it won't really add up to that much, will it?

    I guess hostname-to-IP lookup could be a problem so you might want to do that "by hand" before calling ping()?

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://73642]
help
Chatterbox?
[sierpinski]: I've never seen $#$var before.
[LanX]: $list cops be an array ref
[LanX]: could
[LanX]: $#array gives the length
[LanX]: no sorry ...
[sierpinski]: so that would just be deferencing it...
[LanX]: the last index!
[LanX]: yes
[sierpinski]: yeah I guess $list is a reference.. yeah
[sierpinski]: why is it the last index and not the first? because the length of the array becomes the index?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-12-13 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?