Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Showing all installed modules

by revdiablo (Prior)
on Jun 23, 2005 at 21:12 UTC ( #469519=note: print w/replies, xml ) Need Help??


in reply to Showing all installed modules

How about this one:

perl -MFile::Find -le ' for my $inc (@INC) { find(sub { return unless /pm$/; $_ = $File::Find::name; s{^\Q$inc/}{}; s{/}{::}g; s{.pm$}{}; print }, $inc); }'

We'll see how long it takes to get golfed. :-)

Replies are listed 'Best First'.
Re^2: Showing all installed modules
by Limbic~Region (Chancellor) on Jun 23, 2005 at 21:17 UTC
    revdiablo,
    use ExtUtils::Installed; print "$_\n" for ExtUtils::Installed->new()->modules;

    Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469519]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2023-12-10 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?