![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Get actual IP over NATby xgunnerx (Initiate) |
on May 22, 2002 at 13:53 UTC ( #168420=snippet: print w/replies, xml ) | Need Help?? |
#!/usr/bin/perl
use strict;
use LWP::Simple;
my @content = get("http://www.whatismyip.com/");
foreach (@content) {
chomp;
print "$1\n" and last if /<TITLE>Your\sip\sis\s(.*)\sWhatIsMyIP.co
+m<\/TITLE>/;
}
|
|