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

scandeps doesn't work:

scandeps -e 'print $Foo::Bar::x' No modules found!
and
use File::Spec::Unix; print $Foo::Bar::x; Bar::Baz->new' 'File::Spec::Unix' => '3.33',

Replies are listed 'Best First'.
Re^3: Check if all used modules are use'ed
by Anonymous Monk on Oct 27, 2011 at 18:09 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