Sewi has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
Is there any (script|module|etc.) which reads a Perl script and complains about every module being used in the source but not imported using "use Module;"?
Sample:
use My::Foo; # Foo is using My::Bar $x = My::Bar->new;
Perl will run this source without complaining - until every usage of My::Bar and the "use My::Bar" are removed from Foo.pm.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Check if all used modules are use'ed
by Corion (Patriarch) on Oct 27, 2011 at 09:49 UTC | |
by Sewi (Friar) on Oct 27, 2011 at 12:41 UTC | |
by Anonymous Monk on Oct 27, 2011 at 18:09 UTC | |
|
Re: Check if all used modules are use'ed
by JavaFan (Canon) on Oct 27, 2011 at 09:48 UTC | |
by Sewi (Friar) on Oct 27, 2011 at 12:34 UTC | |
|
Re: Check if all used modules are use'ed
by Tux (Canon) on Oct 27, 2011 at 11:16 UTC | |
|
Re: Check if all used modules are use'ed
by CountZero (Bishop) on Oct 27, 2011 at 22:21 UTC | |
by Sewi (Friar) on Oct 28, 2011 at 13:31 UTC |