Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Net::DNS::Resolver and nameservers

by jellisii2 (Hermit)
on May 13, 2011 at 15:01 UTC ( [id://904684]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://904684]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-16 20:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found