Welcome, guest | Sign In | My Account | Store | Cart

Checks IPv4

Perl, 6 lines
1
2
3
4
5
6
#!/usr/bin/perl
use LWP::Simple;

if ((get "http://internet.yandex.ru/") =~ /(IPv4:\s(\d+\.){3}\d+)/) {
   print($&, "\n");
}
Created by greg zakharov on Fri, 21 Jun 2013 (MIT)
Perl recipes (17)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks