no longer just digit has asked for the wisdom of the Perl Monks concerning the following question:
Today, doing some module renaming work, I found that I had "use <Module>" in a lot of files where it was not being used. I expected to find a CPAN solution for finding unused "use Module" statements but the best I got was this old stackoverflow answer:
https://stackoverflow.com/questions/13219442/find-unused-used-perl-modulesI already know Test::Vars for removing unused variables, but is there a good Test::Modules or similar for detecting unused modules included into files?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Removing unused Perl modules
by Corion (Patriarch) on Apr 22, 2021 at 07:24 UTC | |
Re: Removing unused Perl modules
by bliako (Abbot) on Apr 22, 2021 at 07:33 UTC | |
Re: Removing unused Perl modules
by perlfan (Parson) on Apr 22, 2021 at 05:14 UTC | |
by no longer just digit (Beadle) on Apr 22, 2021 at 06:19 UTC | |
by perlfan (Parson) on Apr 22, 2021 at 14:08 UTC | |
Re: Removing unused Perl modules
by no longer just digit (Beadle) on May 07, 2021 at 01:22 UTC |