use Net::DNS; $rr = new Net::DNS::RR('name SPF spfdata ...'); $rr = new Net::DNS::RR( name => 'name', type => 'SPF', spfdata => 'single text string' ); $rr = new Net::DNS::RR( name => 'name', type => 'SPF', spfdata => [ 'multiple', 'strings', ... ] );
SPF records inherit most of the properties of the Net::DNS::RR::TXT class.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or other unpredictable behaviour.
$string = $rr->spfdata; @list = $rr->spfdata; $rr->spfdata( @list );
When invoked in scalar context, spfdata() returns the policy text as a single string, with text elements concatenated without intervening spaces.
In a list context, spfdata() returns a list of the text elements.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.