NAME
Net::Domain::Match - Match DNS domain names and extract into TLD, Domain and hostname parts.
SYNOPSIS
use Net::Domain::Match;
use Data::Dumper;
my $c = Net::Domain::Match->new;
while( <> ){
chomp;
if( my @rc = $c->match( $_ ) ){
print Dumper( \@rc ),"\n";
}
}
DESCRIPTION
This module is used for finding and extracting domain names from a series of text.
OBJECT ORIENTED INTERFACE
This module is written with an object oriented interface.
- new
-
This method instantiates the object. It attempts to parse the TLD/SLD cache and load the domains into its object store.
- refresh
-
Parse the local file, generating all TLDs and SLDs.
- pull
-
Pull the remote file for processing. Requires
LWP
for this.
SEE ALSO
This module makes use of LWP::UserAgent for the communications with the external services.
Please submit all bugs via https://github.com/petermblair/Perl-CPAN/issues
AUTHOR
Peter Blair, <cpan@petermblair.com>
COPYRIGHT AND LICENSE
Copyright (C) 2013 by Peter Blair
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.