ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-ADNS/ADNS.pm
(Generate patch)

Comparing EV-ADNS/ADNS.pm (file contents):
Revision 1.5 by root, Mon Dec 3 11:54:58 2007 UTC vs.
Revision 1.7 by root, Wed Dec 5 10:46:00 2007 UTC

49 49
50 sub adns_cb { 50 sub adns_cb {
51 my ($status, $expires, @rr) = @_; 51 my ($status, $expires, @rr) = @_;
52 if ($status == EV::ADNS::s_ok) { 52 if ($status == EV::ADNS::s_ok) {
53 use JSON::XS; 53 use JSON::XS;
54 warn to_json \@rr; 54 warn encode_json \@rr;
55 } 55 }
56 } 56 }
57 57
58The format of result records varies considerably, here is some cursory 58The format of result records varies considerably, here is some cursory
59documentation of how each record will look like, depending on the query 59documentation of how each record will look like, depending on the query
143 143
144use Carp (); 144use Carp ();
145use EV (); 145use EV ();
146 146
147BEGIN { 147BEGIN {
148 $VERSION = '0.2'; 148 $VERSION = '0.3';
149 149
150 require XSLoader; 150 require XSLoader;
151 XSLoader::load (EV::ADNS, $VERSION); 151 XSLoader::load (EV::ADNS, $VERSION);
152} 152}
153 153

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines