Scroll to navigation

Zonemaster::LDNS::RRList(3pm) User Contributed Perl Documentation Zonemaster::LDNS::RRList(3pm)

NAME

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

SYNOPSIS

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

CLASS METHODS

Creates a new empty Zonemaster::LDNS::RRList object.
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

Returns the number of RRs in the list.
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.

    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.

Pushes an RR onto the list.
Pops an RR off the list.
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.

Returns a string with the list of RRs in presentation format.
Calls the XS "compare" method with the arguments it needs, rather than the ones overloading gives.
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.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

'=item' outside of any '=over'
2025-02-02 perl v5.40.0