Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: writing a utility to determine whether I have a working wifi connection

by Aldebaran (Curate)
on Jul 29, 2019 at 19:29 UTC ( [id://11103594]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ ./1.lwp.pl 
    execution here
    execution there
    ...
    say "execution there";
    __END__
    $
    
  2. or download this
    # Set up configuration data
    use vars qw{%SUPPORTED @RELIABLE_HTTP};
    BEGIN {
    ...
                    'http://cnn.com/'                  => sub { /CNN/     
    +             },
            );
    }
    
  3. or download this
    use LWP::Simple 5.805 qw{ get $ua };
     
    use vars qw{$VERSION @ISA @EXPORT_OK};
    ...
            # Set the useragent timeout
            $ua->timeout(30);
    }
    
  4. or download this
    sub get ($)
    {
        my $response = $ua->get(shift);
        return $response->decoded_content if $response->is_success;
        return undef;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11103594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-16 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found