NAME

Zonemaster::LDNS::RRList - class representing lists of resource records.

SYNOPSIS

my $rrlist = Zonemaster::LDNS::RRList->new( $rrs_aref );

CLASS METHODS

new()

Creates a new empty Zonemaster::LDNS::RRList object.

new($rrs)

Creates a new Zonemaster::LDNS::RRList object for the given resource records.

Takes a reference to an array of Zonemaster::LDNS::RR objects.

Returns a Zonemaster::LDNS::RRList object.

INSTANCE METHODS

count()

Returns the number of RRs in the list.

compare($other)

Compares two Zonemaster::LDNS::RRList. The order of Zonemaster::LDNS::RR objects in the list does not matter. The TTL field is ignored, and the comparison of domain names is case insensitive.

Returns an integer, where 0 indicates equality.

get($pos)
my $rr = Zonemaster::LDNS::RRList->get( 0 );

Retrieves the RR in the given position from the list.

Takes an integer.

Returns a Zonemaster::LDNS::RR object, or undef if there was no RR.

push($rr)

Pushes an RR onto the list.

pop()

Pops an RR off the list.

is_rrset()

Returns true or false depending on if the list is an RRset or not.

Note that the underlying LDNS function appears to have a bug as the comparison of the owner name field is case sensitive. See https://github.com/NLnetLabs/ldns/pull/251.

string()

Returns a string with the list of RRs in presentation format.

do_compare($other)

Calls the XS compare method with the arguments it needs, rather than the ones overloading gives.

to_string

Calls the XS string method with the arguments it needs, rather than the ones overloading gives. Functionally identical to string() from the Perl level, except for being a tiny little bit slower.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 40:

'=item' outside of any '=over'