Devel::Decouple::DB - decouple code from imported functions
This module is intended to facilitate the testing and refactoring of legacy Perl code.
To generate a simple report about a module's or script's use of imported functions you can use Devel::Decouple::DB via the debugger.
perl -d:Decouple::DB myscript.pl
Then using the parent class Devel::Decouple, perhaps in a test file, you can easily redefine any of the functions that were listed to decouple (redefine) the problematic dependencies.
# for the given module automatically redefine all called # functions that were imported (as no-ops) my $DD = Devel::Decouple->new(); $DD->decouple( 'Some::Module' );
For a detailed description and rationale please see the documentation for Devel::Decouple.
As noted above, the only interface to this module is the perl debugger.
Devel::Decouple requires no configuration files or environment variables.
No bugs have been reported.
Please report any bugs or feature requests to dev@namimedia.com.
To install Devel::Decouple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Decouple
CPAN shell
perl -MCPAN -e shell install Devel::Decouple
For more information on module installation, please visit the detailed CPAN module installation guide.