Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying patch files using perl?

This should be simple,

Is there a way to apply .patch files using perl?

I am aware I can use system I am looking for a module or something. I have looked on search.cpan.org but I guess I am not typing the right search to get what I want if it exists.

Any help?

like image 991
ianc1215 Avatar asked Feb 28 '12 19:02

ianc1215


People also ask

How do I apply a Windows patch?

Highlight your project to select it. From the main menu, select menu Tools -> Apply Diff Patch. In the resulting dialog, browse to your patch file, select it, and press the Patch button.


1 Answers

I can think of Text::Patch.

You just need to read/write the source/patch files as this module is targeting in-memory text, not simple files.

like image 180
Ouki Avatar answered Sep 22 '22 14:09

Ouki