The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Patch - Apply parameterized patches

SYNOPSIS

    $ 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;

DESCRIPTION

Please see metapatch for documentation. This module is experimental and the API here is subject to change.

FUNCTIONS

This isn't very streamlined yet, and is subject to change.

SEE ALSO

metapatch
Template::Toolkit
Template::Extract

AUTHOR

Gaal Yahas, <gaal at forum2.org>

CAVEATS

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.

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Template::Patch

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to Audrey Tang for sausage machine (and general) havoc.

COPYRIGHT & LICENSE

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.