| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: perl-Text-Patch | Distribution: SUSE Linux Enterprise 16 |
| Version: 1.8 | Vendor: openSUSE |
| Release: bp160.1.12 | Build date: Mon Nov 5 10:57:26 2012 |
| Group: Development/Libraries/Perl | Build host: reproducible |
| Size: 29597 | Source RPM: perl-Text-Patch-1.8-bp160.1.12.src.rpm |
| Packager: https://bugs.opensuse.org | |
| Url: http://search.cpan.org/dist/Text-Patch/ | |
| Summary: Patches text with given patch | |
Text::Patch combines source text with given diff (difference) data. Diff
data is produced by Text::Diff module or by the standard diff utility (man
diff, see -u option).
* patch( $source, $diff, options... )
First argument is source (original) text. Second is the diff data. Third
argument can be either hash reference with options or all the rest
arguments will be considered patch options:
$output = patch( $source, $diff, STYLE => "Unified", ... );
$output = patch( $source, $diff, { STYLE => "Unified", ... } );
Options are:
STYLE => 'Unified'
STYLE can be "Unified", "Context" or "OldStyle".
The 'Unified' diff format looks like this:
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
The Nameless is the origin of Heaven and Earth;
-The Named is the mother of all things.
+The named is the mother of all things.
+
Therefore let there always be non-being,
so we may see their subtlety,
And let there always be being,
@@ -9,3 +8,6 @@
The two are the same,
But after they are produced,
they have different names.
+They both may be called deep and profound.
+Deeper and more profound,
+The door of all subtleties!
GPL-2.0+
* Mon Nov 05 2012 cfarrell@suse.com
- license update: GPL-2.0+
README defers only to COPYING which is GPL-2.0+ - no mention of GPL-1.0
anywhere
* Fri Mar 23 2012 opensuse@dstoecker.de
- initial package
/usr/lib/perl5/vendor_perl/5.42.0/Text /usr/lib/perl5/vendor_perl/5.42.0/Text/Patch.pm /usr/share/doc/packages/perl-Text-Patch /usr/share/doc/packages/perl-Text-Patch/COPYING /usr/share/doc/packages/perl-Text-Patch/ChangeLog /usr/share/doc/packages/perl-Text-Patch/README /usr/share/man/man3/Text::Patch.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Sep 30 22:36:46 2025