my $p = `ping -c 1 www.google.com | grep -i "bytes.*ms"` #### 64 bytes from lhr14s21-in-f16.1e100.net (173.194.34.144): icmp_seq=1 ttl=55 time=549 ms #### ping: unknown host www.google.com