Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: How do I detect what modules are not being used?

by hakkr (Chaplain)
on Apr 07, 2005 at 14:26 UTC ( #445698=note: print w/replies, xml ) Need Help??


in reply to Re: How do I detect what modules are not being used?
in thread How do I detect what modules are not being used?

Hi,

You could maybe just mess with @INC or programmtically rename each module directory and then perl -c each script and look for the "Undefined subroutine &main:: at line" errors

  • Comment on Re^2: How do I detect what modules are not being used?

Replies are listed 'Best First'.
Re^3: How do I detect what modules are not being used?
by Limbic~Region (Chancellor) on Apr 07, 2005 at 14:49 UTC
    hakkr,
    This is similar to the approach I outlined (commenting out each module). This is certainly better than nothing, but there are still plenty of edge cases that would make this less than a 100% solution. For instance, if a module is required inside an eval block of a conditional, then only under the right circumstances will making the module unavailable show up. A comprehensive test suite is needed to ensure removing the module will have no ill effect.

    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://445698]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2023-02-01 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (11 votes). Check out past polls.

    Notices?