Peter Shangov > App-Pmhack > pmhack

Download:
App-Pmhack-0.002.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

pmhack

ABSTRACT ^

Command-line tool to copy a perl module to a development directory

SYNOPSIS ^

  pmhack Module::Name

DESCRIPTION ^

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 STDOUT.

INSTALLATION ^

AUTHOR ^

Peter Shangov <pshangov at yahoo dot com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: