Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ExtUtils::Installed doesn't list all modules

by davidrw (Prior)
on Sep 24, 2006 at 19:11 UTC ( #574617=note: print w/replies, xml ) Need Help??


in reply to ExtUtils::Installed doesn't list all modules

Surely the code should be traversing @INC. Heck, you could even have custom directories added via use lib or $ENV{PERL5LIB} that you want to be visible.
...
So, I'm looking at hand-rolling something that does the business. Unless there's another candidate module out there that I'm unaware of (please tell me).
There are several different existing approaches ..
  • Comment on Re: ExtUtils::Installed doesn't list all modules

Replies are listed 'Best First'.
Re^2: ExtUtils::Installed doesn't list all modules
by rinceWind (Monsignor) on Sep 24, 2006 at 22:03 UTC

    My researches and supersearches before I posted my question showed me your list of related threads, and this was useful. However, evidence would seem to suggest that there isn't an ideal solution already out there.

    I am not interested in HTML formatting for my needs, just a raw list of module names. Similarly, I am not interested in a command line script.

    If EU::I did what it says on the tin, that would have been it. I guess I'll roll my own.

    --

    Oh Lord, won’t you burn me a Knoppix CD ?
    My friends all rate Windows, I must disagree.
    Your powers of persuasion will set them all free,
    So oh Lord, won’t you burn me a Knoppix CD ?
    (Missquoting Janis Joplin)

      Well, how about a hash ref whose keys are the names of all the modules in @INC? Would that meet your needs? This isn't in the documentation for my module, but you could do:
      use HTML::Perlinfo::Modules; my $hashref = (HTML::Perlinfo::Modules::find_modules("",1,\@INC))[1]; # Here are all the module names in @INC: print "$_\n" for (keys %$hashref);
      P.S. If you want even more information on those modules you can look into the values of those keys. Or just use Data::Dumper to see what's in that hashref.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2019-12-06 21:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (159 votes). Check out past polls.

    Notices?