Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use Net::Ping;
    $p = Net::Ping->new('icmp');
    print "She's workin\n" if $p->ping("ns.online.no");
    $p->close();
    
  2. or download this
    #!/usr/bin/perl
    use Net::Ping;
    $p = Net::Ping->new();
    print "She's workin\n" if $p->ping("ns.online.no");
    $p->close();