In article <[email protected]> you write:
>In article <[email protected]> you write:
>>Yes, the txtdata() method concatenates with spaces in a scalar context.
>
>Net::DNS is pretty funky. 

To beat this dead horse a little more, here's the code that Mail::SPF
uses to collect the text strings (in Mail::SPF::Server.pm)

        my $text = join('', $rr->char_str_list);

char_str_list() is right after txtdata() in the Net::DNS source code.
It returns the internal form of the data which is a list of the
strings.

Here's the slightly fancier code in Mail::DKIM  (in Mail::DKIM::PublicKey.pm

            # join with no intervening spaces, RFC 6376
            if ( Net::DNS->VERSION >= 0.69 ) {

                # must call txtdata() in a list context
                $strn = join '', $rr->txtdata;
            }
            else {
                # char_str_list method is 'historical'
                $strn = join '', $rr->char_str_list;
            }

-- 
Regards,
John Levine, [email protected], Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
_______________________________________________
dns-operations mailing list
[email protected]
https://lists.dns-oarc.net/mailman/listinfo/dns-operations

Reply via email to