in reply to Re: Net::DNS::Resolver doesn't return the desired domain name
in thread Net::DNS::Resolver doesn't return the desired domain name

Ah, thanks! So ptrdname is the function that I've been hunting for, then.

With things fixed up this way everything is now working as it is supposed to be. Thanks!
  • Comment on Re^2: Net::DNS::Resolver doesn't return the desired domain name

Replies are listed 'Best First'.
Re^3: Net::DNS::Resolver doesn't return the desired domain name
by cavac (Prior) on Jun 12, 2015 at 11:50 UTC

    For thinks like these, often times a good debugger/IDE can save you hours of frustration without having to add print. (Personally i use Komodo IDE, but probably there are a few other out there that are also very good).

    If you don't want to spend money or have some other reasons not to use an IDE, you can do
    print 'Record is of class: ', ref($l_record), "\n";
    which will result in
    Record is of class: Net::DNS::RR::PTR

    "For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."