Title: RE: NET-DNS & Regex


$the_ip='80.224.159.46';

$the_ip =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/; $the_domain="$4.$3.$2.$1.sbl-xbl.spamhaus.org";

>>##  you're reversing the order of the IP here. . . Is there some reason you're >>doing this?  $the_domain should now equal "46.159.224.80.sbl-xbl.spamhaus.org"



_______________________________________________
Perl-Win32-Users mailing list [email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to