|
Net::IP::Extract - Perl module to extract Ip Address from a document |
Net::IP::Extract - Perl module to extract Ip Address from a document
use Net::IP::Extract;
my $file = $ARGV[0];
my @file;
open(FILE, "<$file") || die " Cannot open file $file : $!\n";
chomp (@file = <FILE>);
close(FILE);
my @ip = Net::IP::Extract::extract(@file);
foreach (@ip){
print "$_\n";
}
This module permit to extract Ip Address from a document, text, html pages etc..
Returns an array with extracted Ip Address:
my @ip = Net::IP::Extract::extract(@file);
perlre
Matteo Cantoni, <mcantoni@cpan.org>
You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.
Copyright (c) 2006, Matteo Cantoni
|
Net::IP::Extract - Perl module to extract Ip Address from a document |