Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Keep It Simple, Stupid
 
PerlMonks  

Re: Determining module dependencies

by andreychek (Parson)
on Oct 13, 2001 at 05:42 UTC ( #118617=note: print w/ replies, xml ) Need Help??


in reply to Determining module dependencies

This isn't anywhere near as slick as fletch's solution.. however, I know you're a mod_perl guy.. so if you have your application running under mod_perl, you could always make use of mod_perl's status page, which lists all the loaded modules.

Althought I know you know this, for the benefit of everyone else, you can put this code into your httpd.conf to give yourself access to a mod_perl status report:

<Location /perl-status> SetHandler perl-script PerlHandler Apache::Status </Location>
Then you just fire up your browser, and wander over to http://www.mydomain.com/perl-status.

So if project X that you're working on now is the only Perl app loaded under mod_perl, it'd be pretty simple to figure out which modules it's using.

TMTOWTDI ;-)

-Eric


Comment on Re: Determining module dependencies
Download Code
aritst Re : Modules used in your program
by Anonymous Monk on Oct 13, 2001 at 07:43 UTC

    Get Devel::Modlist and then run
    perl -d:Modlist=stop,path script.pl
    which should give you all modules along with their path for script.pl.
    The advantage is that you don't have to know all the modules installed.

    artist

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-04-18 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (469 votes), past polls