I think there is something like that, but I'm not sure.  In the past I have
rolled my own like this...

#!/usr/bin/perl

use File::Find;

my $dir = '';

for (@INC) {
    $dir = $_;
    find (\&wanted, $dir);
}

sub wanted {
    next unless /\.pm$/;
    my $file = $File::Find::name;

    $file =~ s/\Q$dir//; # remove dir path
    $file =~ s|^[/\\]||; # remove leading slash
    $file =~ s/\.pm//; # remove .pm
    $file =~ s|[/\\]|::|g; # convert slash to ::

    print "$file\n"; # print module name
}



-----Original Message-----
From: Rob Richardson [mailto:[EMAIL PROTECTED]
Sent: Monday, February 24, 2003 2:12 PM
To: [EMAIL PROTECTED]
Subject: Get list of available modules?


Greetings!

I'm trying to do some Perl for a non-profit organization.  The computer
administrator doesn't know very much about Perl or about the server. 
If I were to ask him what Perl modules were available, he'd probably
just have to call somebody else and get back to me.  Is there any way
to use Perl to generate a list of such modules for me?

Thanks!

Rob



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to