At 06:23 PM 4/19/01 -0400, Matthew Goodell wrote:
>I have a question about the Perl documentation I find on the web that
>explains the usage of Perl modules. I come across this situation somewhat
>frequently where I need to do something, find a module that can do it, but
>just can't figure out from the basic info how to use it.
>
>For instance, I'm interested in being able to do MX lookups via Perl so I
>found Net::DNS::RR::MX which appears to be what I'm looking for...
>
>METHODS
>preference
> print "preference = ", $rr->preference, "\n";
>Returns the preference for this mail exchange.
>exchange
> print "exchange = ", $rr->exchange, "\n";
>Returns name of this mail exchange.
>
>So lets say I want to do an MX lookup for the domain "perl.org". Which parts
>of this thing do I change to include my specific info? Can you give me a few
>words to serve as a guide for making code like this usable to me?
You're the victim of an unfortunate search result. The class module you
found is a derived class of a base class whose documentation tells you
everything you want to know. Look up Net::DNS::RR and see if that doesn't
do it for you.
You would have gotten that module as well if you downloaded the package you
needed, so you weren't far off anyway.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com