Genealogy-FindaGrave
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
);
sub are_online
{
return 0 if($ENV{'NO_NETWORK_TESTING'} || $ENV{'CIRCLECI'} || $ENV{'TRAVIS_PERL_VERSION'} || $ENV{'AUTOMATED_TESTING'} || $ENV{'NONINTERACTIVE_TESTING'} || (!-t STDIN));
my $host = 'www.findagrave.com:80';
if($ENV{'http_proxy'} && ($ENV{'http_proxy'} =~ /^.+\/\/(\w+:\d+)$/)) {
$host = "$1:3128";
} elsif($ENV{'HTTP_PROXY'} && ($ENV{'HTTP_PROXY'} =~ /^.+\/\/(\w+:\d+)$/)) {
$host = "$1:3128";
}
if(my $s = IO::Socket::INET->new(
# PeerAddr => 'www.ripe.net:43',
# PeerAddr => 'whois.apnic.net:43',
PeerAddr => $host,
Timeout => 5
)) {
print <<EOF;
( run in 2.889 seconds using v1.01-cache-2.11-cpan-483215c6ad5 )