package Data::Domain::Net; use strict; use warnings; use Data::Domain::SemanticAdapter; our $VERSION = '0.02'; use base 'Exporter'; our %map = ( IPv4 => 'Net::IPAddress::IPv4', IPv6 => 'Net::IPAddress::IPv6', ); our %EXPORT_TAGS = ( util => [ keys %map ], ); our @EXPORT_OK = @{ $EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ] }; Data::Domain::SemanticAdapter::install_shortcuts(%map); 1; __END__ =head1 NAME Data::Domain::Net - Data domain classes for IP addresses =head1 SYNOPSIS Data::Domain::Net->new; =head1 DESCRIPTION The classes in this distribution are data domain classes for these IP address types: =over 4 =item IPv4 See L. =item IPv6 See L. =back Besides defining the methods described below, this class also exports, on request, these functions: =over 4 =item IPv4 A shortcut for creating a L object. Arguments are passed on to the object's constructor. =item IPv6 A shortcut for creating a L object. Arguments are passed on to the object's constructor. =back By using the C<:all> tag, you can import all of them. Data::Domain::Net inherits from L. The superclass L defines these methods and functions: as_heavy(), export(), export_fail(), export_ok_tags(), export_tags(), export_to_level(), import(), require_version() =head1 METHODS =over 4 =back =head1 TAGS If you talk about this module in blogs, on del.icio.us or anywhere else, please use the C tag. =head1 VERSION This document describes version 0.02 of L. =head1 BUGS AND LIMITATIONS No bugs have been reported. Please report any bugs or feature requests to C<>, or through the web interface at L. =head1 INSTALLATION See perlmodinstall for information and options on installing Perl modules. =head1 AVAILABILITY The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit to find a CPAN site near you. Or see . =head1 AUTHOR Marcel GrEnauer, C<< >> =head1 COPYRIGHT AND LICENSE Copyright 2007 by Marcel GrEnauer This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut