#!/usr/bin/perl use LWP::Simple; open (FILE,”<file”); while(<FILE>){ s/^IP1.*//g; my @file =split(//,|/s+/,$_); my @file1=”$file[0] $file[1]“; my $IP =”$file[1]” ; my $domain=”$file[0]“; my $url=”http://ip138.com/ips138.asp?ip=$IP&action=2″; my $connet =get(“$url”); my @connet =split(//n/,$connet); foreach my $sc (@connet){ if($sc =~ m/td align=”center”><ul><li>(.*?)<.*/){ printf “%-40s %-20s %s/n”,$domain,$IP,$1 ; } } } close(FILE);