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


in reply to Re^4: Net::Ping output
in thread Net::Ping output

Thats what i am also saying, use $var = `ping -c 5 hostip` like this so $var will hold the ping command output use regex on that variable get whatever you want.


All is well

Replies are listed 'Best First'.
Re^6: Net::Ping output
by gaurav (Sexton) on Aug 19, 2013 at 06:34 UTC

    yes I understood,just want to confirms it that we have to open a separate process , we can't use Net::Ping package to get the desired output