Click here to get back home

how do I list modules

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
how do I list modules mmccaws2 11-23-2006
Posted by mmccaws2 on November 23, 2006, 5:09 pm
Please log in for more thread options


Two questions for this mac os x 10.4 users

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


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

Thanks

Mike


Posted by Sherm Pendley on November 23, 2006, 6:30 pm
Please log in for more thread options



> 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

Posted by mmccaws2 on November 23, 2006, 10:26 pm
Please log in for more thread options



Sherm Pendley wrote:
>
> > 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

thanks

I didn't really understand whether it made any difference whether or
not it was the
intel mac or the original chipset mac os. I saw that there were many
MacPerl sites that haven't been updated recently. That's why I figured
I better make sure.

again thanks


Posted by Sherm Pendley on November 23, 2006, 11:27 pm
Please log in for more thread options



> intel mac or the original chipset mac os. I saw that there were many
> MacPerl sites that haven't been updated recently.

MacPerl sites haven't been updated recently because MacPerl itself is more
or less a dead issue now. It was necessary with MacOS 9 and earlier, because
that was a drastically different environment. Mac OS X ships with standard
"vanilla" Perl.

I should note that, although a special build of Perl is no longer of any use
with Mac OS X, most (if not all) of the useful Mac-related modules that were
included with MacPerl have been carbonated at this point, and are available
through CPAN.

sherm--

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

Posted by mmccaws2 on November 23, 2006, 10:51 pm
Please log in for more thread options






Sherm Pendley wrote:
>
> > 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


Similar ThreadsPosted
List of all modules installed on a system August 8, 2007, 1:41 pm
Stopping the cpan shell from fetching the modules list August 10, 2006, 3:45 am
ANNOUNCE: List-Compare-0.31 August 15, 2004, 10:26 am
ANNOUNCE: List::Compare v0.31 August 22, 2004, 2:06 pm
Help with script to list non-html files in folder October 27, 2005, 2:00 pm
How should I announce the list of delayed class/object/method loaders? October 25, 2005, 9:54 am
List of sample Build::Module Build.PL May 7, 2007, 6:49 pm
GD modules September 1, 2004, 8:20 am
Perl PDF modules - help please August 11, 2004, 2:31 pm
installing modules? September 29, 2005, 1:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap