Michael D. Smith wrote:
> Is there a right way/best way to check for an internet connection?
A strategy I use:
Have a list of IPs to check, as high-availability as possible. Set a
relatively low timeout for LWP. Loop through the IPs, checking each, and
repeating the loop at least once. If you don
It depends on how you are connected to the internet.
if its dialup, you could do this:
my @bob = `ipconfig/all`;
my $jim="";
foreach $jim @bob {
if($jim=~m/ppp/i){
last;
}
}
if its not dialup, you can do something similar looking for the field
"IP Address" and checking if the stuff after th
- Original Message -
From: "Michael D. Smith" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, November 02, 2005 10:23 AM
Subject: Checking for internet connection
>
> Is there a right way/best way to check for an internet connection?
>
> Now I'm using LWP simple to retrieve a webpage, if that