Net::DNS::RR::TXT - DNS TXT resource record
use Net::DNS; $rr = new Net::DNS::RR( 'name TXT txtdata ...' ); $rr = new Net::DNS::RR( ... txtdata => 'single text string' or txtdata => [ 'multiple', 'strings', ... ] ); use encoding 'utf8'; $rr = new Net::DNS::RR( 'jp TXT 古池や 蛙飛込む 水の音' );
Class for DNS Text (TXT) resource records.
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
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->txtdata; @list = $rr->txtdata;
When invoked in scalar context, txtdata() returns the descriptive text as a single string, regardless of the number of elements.
In a list context, txtdata() returns a list of the text elements.
Copyright (c)2011 Dick Franks.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.