http://www.perlmonks.org?node_id=126525


in reply to Re: Network Link Status Report Generator
in thread Network Link Status Report Generator

As I see it with Net::Ping you'd still be forced to run it as su (unless you run echo service from (x)inetd).
It's all in the documentation... Also, Net::Ping doesn't provide the same kind of output as system ping, unless you want to twiddle with timers and timeouts.
I'd say that it would be neater here to use "open(|/sbin/ping <opts>)".