Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How do you audit what Perl modules you use?

by lithron (Chaplain)
on May 09, 2005 at 19:05 UTC ( #455281=note: print w/ replies, xml ) Need Help??


in reply to How do you audit what Perl modules you use?

A little something I stole from the monestary recently. I wish I'd have commented the code with who the user that posted it was.

END { print STDERR "Modules used:\n", map { " $_\n" } values %INC; }


Comment on Re: How do you audit what Perl modules you use?
Download Code
Re^2: How do you audit what Perl modules you use?
by DrWhy (Chaplain) on May 09, 2005 at 21:22 UTC
    Of course this will only show you what modules were actually used on a particular run of the program. That's not guaranteed to get you every module that may be used in your code, e.g. if you require a module in some conditional, to name just one possible way to avoid acutally using modules mentioned in your code.

    --DrWhy

    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-21 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls