NAME
Net::IP::Identifier::WhoisParser - parse WHOIS result, extracting particular information
VERSION
version 0.111
SYNOPSIS
use Net::IP::Identifier::WhoisParser;
my $parser = Net::IP::Identifier::WhoisParser->new(text => $whois_result);
DESCRIPTION
Net::IP::Identifier::WhoisParser objects are created with the output string of a call to 'whois', 'jwhois', etc. Methods are available to extract information such as the netblock range and the owner of the block.
Methods
- new( text => 'WHOIS results' )
-
Creates a new Net::IP::Identifier::WhoisParser object. The text option must be provided for construction of the object, and should be the output of running a 'whois' (or similar) command.
- relevant_lines
-
Returns a reference to an array of lines from the text. Comments (lines starting with '#' or '%') and blank lines are excluded, and many WHOIS formats will have a fair amount of trailing cruft removed.
- range
-
If the range of the netblock can be determined, it is returned here as a Net::IP::Identifier::Net object.
- entity
-
If an owner entity of the netblock can be determined, it is returned here.
SEE ALSO
AUTHOR
Reid Augustin <reid@hellosix.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Reid Augustin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.