- or download this
#!C:\perl\bin\perl
use strict;
use warnings;
...
use Net::Ping::External qw(ping);
print ping(host=>"yahoo.com"), " | ", ping(host=>"wayfakehostname.com"
+);
- or download this
C:\Documents and Settings\marc>perl test.pl
0 | 0
- or download this
return 1 if $result =~ /time?\d*ms/;
return 0;
- or download this
return $result =~ /time=\d+ms/?1:0;