Re: how do I list modules -! script doesn't list







Sherm Pendley wrote:
"mmccaws2" <mmccaws@xxxxxxxxxxx> writes:

Two questions for this mac os x 10.4 users

This ain't your father's MacPerl - The answer is the same for Mac OS X as
for any other *nix. :-)

one how do I list all of the Net::? modules? {I was looking for
net::dns but it's not loaded}

Have a look at:

perldoc -q "which modules are installed"

two Is there another module that will let me query nameservers for mx,
ns, a, and cname records?

Net::DNS

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net

Hi Sherm

I tried this

#!/usr/bin/perl

use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}

and get

Perl -- 5.8.6
but none of the perl modules listed. It must see ExtUtils::Installed
and I put another module, net::domain, included use strict; and use
warnings; in the script to see it produced an error. There are no
errors on the output. How might I change this to view the modules?

Mike

.



Relevant Pages

  • Re: how do I list modules
    ... This ain't your father's MacPerl - The answer is the same for Mac OS X as ... for any other *nix. ... Web Hosting by West Virginians, ...
    (comp.lang.perl.modules)
  • Re: copy file from local comp to server ?
    ... Bergamot writes: ... IS this some Mac thing? ... Web Hosting by West Virginians, ... Cocoa programming in Perl: http://camelbones.sourceforge.net ...
    (alt.html)
  • Re: how do I list modules
    ... This ain't your father's MacPerl - The answer is the same for Mac OS X as ... for any other *nix. ... Web Hosting by West Virginians, ... MacPerl sites that haven't been updated recently. ...
    (comp.lang.perl.modules)
  • Re: FAQ 3.24 Why dont Perl one-liners work on my DOS/Mac/VMS system?
    ... have rather different ideas about quoting than the Unix shells under ... # Unix (including Mac OS X) ... thoroughly check it (not enough Perl knowledge / experience and only ... Web Hosting by West Virginians, ...
    (comp.lang.perl.misc)
  • Re: how do I list modules
    ... MacPerl sites that haven't been updated recently. ... Mac OS X ships with standard ... although a special build of Perl is no longer of any use ... Web Hosting by West Virginians, ...
    (comp.lang.perl.modules)