NAME

pmonoff - alter code to use or not use modules

DESCRIPTION

This alters code. It searches for a module and looks for use statments, and turns them on or off. Prints to stdout. This is useful for Smart::Comments for example.

USAGE

pmonoff [OPTION].. [FILE]..

OPTIONS

-h          help
-m string   module name
-o          turn on
-x          turn off
-v          version
-d          debug
-w          backup old file and overrite changes instead of stdout

EXAMPLE USAGE

Show code with Smart::Comments off, print to stdout. pmonoff -m Smart::Comments -x ./lib/My/Module.pm

Make sure Smart::Comments off, if changes made, save the file, make a backup of the original. pmonoff -w -m Smart::Comments -x ./lib/My/Module.pm

Find all files here, and change them if they are perl files and a change is made , backs up

find ./lib ./bin ./t -type f -exec perl bin/pmonoff -m Smart::Comments -x -w '{}' \;

SEE ALSO

LEOCHARRE::Dev - parent package