in reply to RE: RE: Net::Ping not working
in thread Net::Ping not working

Depends on how fast your modem is, and how big the home page is. If he starts hitting SlashDot on a 2400 baud modem, and is checking 4 times an hour, that's way too much useless traffic, and simply contributes to useless net-gestion.

And, if any one cares, it skews the hit counters on the pages. Let's do that to www.stonehenge.com, and suddenly you may find that it *appears* that thousands more people are interested. Also fills up web logs uselessly.

The socket code may be a few more lines to type, but it cuts down on net traffic (one, vs possible dozens of connections, for each image on a page), doesn't inflate hit counters, and is more net-responsible.

Frankly, I'm a little surprised you let that slip by.

--Chris

e-mail jcwren

Replies are listed 'Best First'.
RE: (jcwren) RE: (3) Net::Ping not working
by merlyn (Sage) on Sep 12, 2000 at 19:15 UTC
    OK, if it's just a connect to 80, let's do this (again with less typing):
    use IO::Socket; for my $host(qw(www.slashdot.org www.deja.com www.perlmonks.org)) { IO::Socket::INET->new("$host:80") or warn "cannot connect to web of +$host\n"; }

    -- Randal L. Schwartz, Perl hacker