in reply to Net::DNS::Resolver and nameservers

The documentation states that it takes an arrayref. Have you tried to use Net::DNS::Resolver->new(nameservers => [\@nameservers] ...

Replies are listed 'Best First'.
Re^2: Net::DNS::Resolver and nameservers
by henzen (Acolyte) on May 13, 2011 at 15:17 UTC
    Na, that makes it fail every time. Problem solved though, so thanks anyway.
Re^2: Net::DNS::Resolver and nameservers
by MidLifeXis (Monsignor) on May 13, 2011 at 18:06 UTC

    [\@foo] is an AoA, not an arrayref. Update: Well, it is an arrayref of sorts, but not an arrayref reference to an array (better? ;-b) of scalars containing strings. :-)

    --MidLifeXis

      but not an arrayref of scalars. :-)

      An arrayref is a reference to an array is always a reference to an array, no mater what the array contains, and yes, arrayrefs , like all refs, are scalars -- tricky :)