in reply to Check if all used modules are use'ed

Just run the program through its paces and see if you get any errors. Of course your test suite will discover such errors quickly.

I am more worried about modules "use"d but never used, because that is a waste of memory, processing power and time.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: Check if all used modules are use'ed
by Sewi (Friar) on Oct 28, 2011 at 13:31 UTC

    All web scripte are running in a persistant interpreter (mod_perl/FastCGI), every module is used sooner or later.

    Problems start when a script is called which doesn't use a used module and no other script has pre-loaded (use'd) the module before.