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

I would assume that Module::Scandeps can do that. Alternatively, if you are worried about implicit loading of modules, I would just grep for everything that looks like a class name (/\b(\w+(?:'|::)(?:\w+(?:'|::)?)*/), and see where else that shows up. Note that use $module isn't sufficient, as there are many other "loader-style" modules, like if.

Replies are listed 'Best First'.
Re^2: Check if all used modules are use'ed
by Sewi (Friar) on Oct 27, 2011 at 12:41 UTC
      scandeps isn't lint :)
      $ perl -MO=Xref -e " print $Foo::Bar::x " | perl -ne " $f++ if /Subro +utine..main/; print if $f " -e syntax OK Subroutine (main) Package Foo::Bar $x 1