… | |
… | |
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 | |
58 | The format of result records varies considerably, here is some cursory |
58 | The format of result records varies considerably, here is some cursory |
59 | documentation of how each record will look like, depending on the query |
59 | documentation of how each record will look like, depending on the query |
… | |
… | |
143 | |
143 | |
144 | use Carp (); |
144 | use Carp (); |
145 | use EV (); |
145 | use EV (); |
146 | |
146 | |
147 | BEGIN { |
147 | BEGIN { |
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 | |