in reply to Re: Using Ping with perl
in thread Using Ping with perl

If you want to simulate traceroute, have you tried looking how it's done in Net::Traceroute::PurePerl. Unfortunately, it's not as straightforward as your code hopes.