Net::Domain::Match - Match DNS domain names and extract into TLD, Domain and hostname parts.
use Net::Domain::Match; use Data::Dumper; my $c = Net::Domain::Match->new; while( <> ){ chomp; if( my @rc = $c->match( $_ ) ){ print Dumper( \@rc ),"\n"; } }
This module is used for finding and extracting domain names from a series of text.
This module is written with an object oriented interface.
This method instantiates the object. It attempts to parse the TLD/SLD cache and load the domains into its object store.
Parse the local file, generating all TLDs and SLDs.
Pull the remote file for processing. Requires LWP for this.
LWP
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
Peter Blair, <cpan@petermblair.com>
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.
To install Net::Domain::Match, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Domain::Match
CPAN shell
perl -MCPAN -e shell install Net::Domain::Match
For more information on module installation, please visit the detailed CPAN module installation guide.