NetAddr::IP::Find 0.03
Sponsored Links
NetAddr::IP::Find 0.03 Ranking & Summary
File size:
0.003 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
925
Date added:
2007-04-17
Publisher:
Tatsuhiko Miyagawa
NetAddr::IP::Find 0.03 description
NetAddr::IP::Find is a Perl module to find IP addresses in plain text.
SYNOPSIS
use NetAddr::IP::Find;
$num_found = find_ipaddrs($text, &callback);
This is a module for finding IP addresses in plain text.
Functions
NetAddr::IP::Find exports one function, find_ipaddrs(). It works very similar to URI::Finds find_uris() or Email::Finds find_emails().
$num_ipaddrs_found = find_ipaddrs($text, &callback);
The first argument is a text to search through and manipulate. Second is a callback routine which defines what to do with each IP address as theyre found. It returns the total number of IP addresses found.
The callback is given two arguments. The first is a NetAddr::IP instance representing the IP address found. The second is the actual IP address as found in the text. Whatever the callback returns will replace the original text.
EXAMPLES
# For each IP address found, ping its host to see if its alive.
use Net::Ping;
my $pinger = Net::Ping->new;
my %pinged;
find_ipaddrs($text, sub {
my($ipaddr, $orig) = @_;
my $host = $ipaddr->to_string;
next if exists $pinged{$host};
$pinged{$host} = $pinger->ping($host);
});
while (my($host, $up) == each %pinged) {
print "$host is " . $up ? up : down . "n";
}
# Resolve IP address to FQDN
find_ipaddrs($text, sub {
my($ipaddr, $orig) = @_;
resolve_ip($ipaddr->to_string);
});
sub resolve_ip {
use Net::DNS;
# see perldoc Net::DNS for details
}
SYNOPSIS
use NetAddr::IP::Find;
$num_found = find_ipaddrs($text, &callback);
This is a module for finding IP addresses in plain text.
Functions
NetAddr::IP::Find exports one function, find_ipaddrs(). It works very similar to URI::Finds find_uris() or Email::Finds find_emails().
$num_ipaddrs_found = find_ipaddrs($text, &callback);
The first argument is a text to search through and manipulate. Second is a callback routine which defines what to do with each IP address as theyre found. It returns the total number of IP addresses found.
The callback is given two arguments. The first is a NetAddr::IP instance representing the IP address found. The second is the actual IP address as found in the text. Whatever the callback returns will replace the original text.
EXAMPLES
# For each IP address found, ping its host to see if its alive.
use Net::Ping;
my $pinger = Net::Ping->new;
my %pinged;
find_ipaddrs($text, sub {
my($ipaddr, $orig) = @_;
my $host = $ipaddr->to_string;
next if exists $pinged{$host};
$pinged{$host} = $pinger->ping($host);
});
while (my($host, $up) == each %pinged) {
print "$host is " . $up ? up : down . "n";
}
# Resolve IP address to FQDN
find_ipaddrs($text, sub {
my($ipaddr, $orig) = @_;
resolve_ip($ipaddr->to_string);
});
sub resolve_ip {
use Net::DNS;
# see perldoc Net::DNS for details
}
NetAddr::IP::Find 0.03 Screenshot
NetAddr::IP::Find 0.03 Keywords
IP
NetAddr
Find 0.03
find ip addresses
IP addresses
Plain text
ip address
to find
Perl module
find ip
text
found
host
addresses
module
address
Bookmark NetAddr::IP::Find 0.03
NetAddr::IP::Find 0.03 Copyright
WareSeeker periodically updates pricing and software information of NetAddr::IP::Find 0.03 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of NetAddr::IP::Find 0.03 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
how to find ip address
find ip addresses on network
how to find ip addresses
find ip address
ip address finder
static ip addresses
my ip address
email addresses
how do i find ip addresses
what is my ip address
find ip addresses on lan
tracking ip addresses
find ip addresses hosts
ip addresses connected to my computer
plain text format
netaddress login
find ip addresses in use
find ip addresses on my network
Related Software
NetAddr::IP is a Perl module that can manage IPv4 and IPv6 addresses and subnets. Free Download
Email::Find allows you to find RFC 822 email addresses in plain text. Free Download
NetAddr::IP::UtilPP is a Perl module with pure Perl functions for NetAddr::IP::Util. Free Download
NetPacket::IP is a Perl module to assemble and disassemble IP (Internet Protocol) packets. Free Download
Arping is an ARP level ping utility. Free Download
external IP shows your current external IP in the browsers statusbar. Free Download
Nuhe is a rule based log monitoring system, which is capable of action when rules are matched againsts log(s) activity. Free Download
Net::ACL::Match::IP is a class matching IP addresses against an IP or network. Free Download
Latest Software
Popular Software
Favourite Software