Command-line tool to copy a perl module to a development directory
Sometimes you want to debug an installed perl module, e.g. by sprinkling some print statements. Instead of being tempted to mess with the module code directly, it is a good practice to copy that module to a development directory, edit it there, and then add that directory to
@INC so that perl uses the modified code instead of the original.
pmhack is a tool to aid that - it grabs a module from <@INC>, puts it in a directory specified in the
PERL5HACKLIB environment variable, creating all additional directories as needed, removes any read-only attributes from the file, and prints the new filename to
CPAN. It provides the
pmhackcommand-line tool that you will use to copy modules.
Peter Shangov <pshangov at yahoo dot com>
This software is copyright (c) 2010 by Peter Shangov.