Net::DNS::RR::APL::ApItem(3pm)

Net::DNS::RR::APL::ApItem3pm

Dns apl apitem

Usage

use Net::DNS::RR::APL::ApItem;

my $apitem=Net::DNS::RR::APL::ApItem->new();

Overview

This is an object that contains the Address Prefixes with related information such as address family and possible negation flags for the APL RR. Please see the RFC3123 for details.

Methods

new

Constructor method.

$apitem[0]=Net::DNS::RR::APL::ApItem->new(1:192.168.32.0/21); $apitem[1]=Net::DNS::RR::APL::ApItem->new(!1:192.168.32.0/21); $apitem[2]=Net::DNS::RR::APL::ApItem->new(2:FF00:0:0:0:0:0:0:0/8);

$empty=Net::DNS::RR::APL::ApItem();

Returns undef if the argument cannot be parsed. Returns an object with empty attributes when no argument is supplied.

string

Returns a string representation of the object in the '[!]afi:address/prefix' format
$apl=$apitem[0]->string;

print

Prints the textual representation of the object.
$apitem[0]->print;
# same functionality as:
$apl=$apitem[0]->string;
print $apl;

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libnet-dns-perl 0.66-2+b2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.