1Net::DNS::RR::APL::ApItUesme(r3)Contributed Perl DocumenNteatt:i:oDnNS::RR::APL::ApItem(3)
2
3
4
6 Net::DNS::RR::APL::ApItem - DNS APL ApItem
7
9 use Net::DNS::RR::APL::ApItem;
10
11 my $apitem=Net::DNS::RR::APL::ApItem->new();
12
14 This is an object that contains the Address Prefixes with related
15 information such as address family and possible negation flags for the
16 APL RR. Please see the RFC3123 for details.
17
19 new
20 Constructor method.
21
22 $apitem[0]=Net::DNS::RR::APL::ApItem->new(1:192.168.32.0/21);
23 $apitem[1]=Net::DNS::RR::APL::ApItem->new(!1:192.168.32.0/21);
24 $apitem[2]=Net::DNS::RR::APL::ApItem->new(2:FF00:0:0:0:0:0:0:0/8);
25
26 $empty=Net::DNS::RR::APL::ApItem();
27
28 Returns undef if the argument cannot be parsed. Returns an object with
29 empty attributes when no argument is supplied.
30
31 string
32 Returns a string representation of the object in the
33 '[!]afi:address/prefix' format
34 $apl=$apitem[0]->string;
35
36 print
37 Prints the textual representation of the object.
38 $apitem[0]->print;
39 # same functionality as:
40 $apl=$apitem[0]->string;
41 print $apl;
42
44 Copyright (c) 2008 Olaf Kolkman (NLnet Labs)
45
46 All rights reserved. This program is free software; you may
47 redistribute it and/or modify it under the same terms as Perl itself.
48
50 Net::DNS::RR::APL, perl(1), Net::DNS, Net::DNS::Resolver,
51 Net::DNS::Packet, Net::DNS::Header, Net::DNS::Question, Net::DNS::RR,
52 RFC 3123
53
54
55
56perl v5.10.1 2009-01-26 Net::DNS::RR::APL::ApItem(3)