Matteo Cantoni > Net-IP-Extract-0.02 > Net::IP::Extract

Download:
Net-IP-Extract-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

Net::IP::Extract - Perl module to extract Ip Address from a document

SYNOPSIS ^

  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";
  }

DESCRIPTION ^

This module permit to extract Ip Address from a document, text, html pages etc..

METHODS ^

extract

Returns an array with extracted Ip Address:

  my @ip = Net::IP::Extract::extract(@file);

SEE ALSO ^

perlre

AUTHOR ^

Matteo Cantoni, <mcantoni@cpan.org>

COPYRIGHT AND LICENSE ^

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