NAME

Devel::Decouple::DB - decouple code from imported functions

SYNOPSIS

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' );

DESCRIPTION

For a detailed description and rationale please see the documentation for Devel::Decouple.

INTERFACE

As noted above, the only interface to this module is the perl debugger.

CONFIGURATION AND ENVIRONMENT

Devel::Decouple requires no configuration files or environment variables.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests to dev@namimedia.com.