Template::Patch - Apply parameterized patches
$ metapatch --patch mychanges.mp < oldfile > newfile # or, programmatically: use Template::Patch; my $tp = Template::Patch->parse_patch_file($metapatch_file); $tp->extract($source); $tp->patch; $tp->print;
Please see metapatch for documentation. This module is experimental and the API here is subject to change.
This isn't very streamlined yet, and is subject to change.
Gaal Yahas, <gaal at forum2.org>
<gaal at forum2.org>
This module and the included metapatch tool are in early stages of gathering ideas and coming up with a good interface. They work (and have saved me time), but expect change in the interfaces.
metapatch
Please report any bugs or feature requests to bug-template-patch at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Patch. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-template-patch at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Template::Patch
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Template-Patch
CPAN Ratings
http://cpanratings.perl.org/d/Template-Patch
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Template-Patch
Search CPAN
http://search.cpan.org/dist/Template-Patch
Thanks to Audrey Tang for sausage machine (and general) havoc.
Copyright 2006 Gaal Yahas, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::Patch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Patch
CPAN shell
perl -MCPAN -e shell install Template::Patch
For more information on module installation, please visit the detailed CPAN module installation guide.