[root@localhost Perl_Ping]# ./sample2.pl -h 192.168.1.150 $count is : 5 PING 192.168.1.150 (192.168.1.150) 64(92) bytes of data. 72 bytes from 192.168.1.150: icmp_req=1 ttl=254 time=11.1 ms --- 192.168.1.150 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 11.150/11.150/11.150/0.000 ms