16 Sep 2010 13:15:10 UTC
- Distribution: App-Pmhack
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (606 / 301 / 0)
- KwaliteeBus factor: 0
- 82.11% Coverage
- License: perl_5
- Activity24 month
- Download (10.08KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPSHANGOV Peter Shangovand 1 contributors
- Peter Shangov
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
@INCso that perl uses the modified code instead of the original.
pmhackis a tool to aid that - it grabs a module from <@INC>, puts it in a directory specified in the
PERL5HACKLIBenvironment variable, creating all additional directories as needed, removes any read-only attributes from the file, and prints the new filename to
Create an environment variable PERL5HACKLIB and set it to a directory where modules will be copied for hacking
You may also want to add the above directory to PERL5LIB so that perl uses your hacked version rather than the installed version by default.
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.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.