Re: how do I list modules -! script doesn't list
- From: "mmccaws2" <mmccaws@xxxxxxxxxxx>
- Date: 23 Nov 2006 19:51:22 -0800
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
.
- Follow-Ups:
- Re: how do I list modules -! script doesn't list
- From: Sherm Pendley
- Re: how do I list modules -! script doesn't list
- References:
- how do I list modules
- From: mmccaws2
- Re: how do I list modules
- From: Sherm Pendley
- how do I list modules
- Prev by Date: Re: how do I list modules
- Next by Date: Re: how do I list modules
- Previous by thread: Re: how do I list modules
- Next by thread: Re: how do I list modules -! script doesn't list
- Index(es):
Relevant Pages
|
|