{"id":6868,"date":"2022-12-20T19:33:45","date_gmt":"2022-12-20T22:33:45","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/textdiff-man3\/"},"modified":"2022-12-20T19:33:45","modified_gmt":"2022-12-20T22:33:45","slug":"textdiff-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/textdiff-man3\/","title":{"rendered":"Text::Diff (man3)"},"content":{"rendered":"<h1 align=\"center\">Text::Diff<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#Formatting Classes\">Formatting Classes<\/a><br \/> <a href=\"#LIMITATIONS\">LIMITATIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#REPOSITORY\">REPOSITORY<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Text::Diff \u2212 Perform diffs on files and record sets<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use Text::Diff; <br \/> ## Mix and match filenames, strings, file handles, producer subs, <br \/> ## or arrays of records; returns diff in a string. <br \/> ## WARNING: can return B<large> diffs for large files. <br \/> my $diff = diff &#8220;file1.txt&#8221;, &#8220;file2.txt&#8221;, { STYLE => &#8220;Context&#8221; }; <br \/> my $diff = diff $string1, $string2, %options; <br \/> my $diff = diff *FH1, *FH2; <br \/> my $diff = diff &#038;reader1, &reader2; <br \/> my $diff = diff @records1, @records2; <br \/> ## May also mix input types: <br \/> my $diff = diff @records1, &#8220;file_B.txt&#8221;;<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;diff()&#8221; provides a basic set of services akin to the <small>GNU<\/small> &#8220;diff&#8221; utility. It is not anywhere near as feature complete as <small>GNU<\/small> &#8220;diff&#8221;, but it is better integrated with Perl and available on all platforms. It is often faster than shelling out to a system\u2019s &#8220;diff&#8221; executable for small files, and generally slower on larger files.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Relies on Algorithm::Diff for, well, the algorithm. This may not produce the same exact diff as a system\u2019s local &#8220;diff&#8221; executable, but it will be a valid diff and comprehensible by &#8220;patch&#8221;. We haven\u2019t seen any differences between Algorithm::Diff\u2019s logic and <small>GNU<\/small> &#8220;diff&#8221;\u2019s, but we have not examined them to make sure they are indeed identical.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Note<\/b>: If you don\u2019t want to import the &#8220;diff&#8221; function, do one of the following:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">use Text::Diff (); <br \/> require Text::Diff;<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">That\u2019s a pretty rare occurrence, so &#8220;diff()&#8221; is exported by default.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If you pass a filename, but the file can\u2019t be read, then &#8220;diff()&#8221; will &#8220;croak&#8221;.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;diff()&#8221; takes two parameters from which to draw input and a set of options to control its output. The options are: <small><br \/> FILENAME_A, MTIME_A, FILENAME_B, MTIME_B<\/small><\/p>\n<p style=\"margin-left:17%;\">The name of the file and the modification time &#8220;files&#8221;.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">These are filled in automatically for each file when &#8220;diff()&#8221; is passed a filename, unless a defined value is passed in.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If a filename is not passed in and <small>FILENAME_A<\/small> and <small>FILENAME_B<\/small> are not provided or are &#8220;undef&#8221;, the header will not be printed.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Unused on &#8220;OldStyle&#8221; diffs.<\/p>\n<p style=\"margin-left:11%;\"><small>OFFSET_A, OFFSET_B<\/small><\/p>\n<p style=\"margin-left:17%;\">The index of the first line \/ element. These default to 1 for all parameter types except <small>ARRAY<\/small> references, for which the default is 0. This is because <small>ARRAY<\/small> references are presumed to be data structures, while the others are line-oriented text.<\/p>\n<p style=\"margin-left:11%;\"><small>STYLE<\/small><\/p>\n<p style=\"margin-left:17%;\">&#8220;Unified&#8221;, &#8220;Context&#8221;, &#8220;OldStyle&#8221;, or an object or class reference for a class providing &#8220;file_header()&#8221;, &#8220;hunk_header()&#8221;, &#8220;hunk()&#8221;, &#8220;hunk_footer()&#8221; and &#8220;file_footer()&#8221; methods. The two <b>footer()<\/b> methods are provided for overloading only; none of the formats provide them.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Defaults to &#8220;Unified&#8221; (unlike standard &#8220;diff&#8221;, but Unified is what\u2019s most often used in submitting patches and is the most human readable of the three.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If the package indicated by the <small>STYLE<\/small> has no &#8220;hunk()&#8221; method, &#8220;diff()&#8221; will load it automatically (lazy loading). Since all such packages should inherit from &#8220;Text::Diff::Base&#8221;, this should be marvy.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Styles may be specified as class names (&#8220;STYLE => &#8216;Foo'&#8221;), in which case they will be &#8220;new()&#8221;ed with no parameters, or as objects (&#8220;STYLE => Foo\u2212>new&#8221;).<\/p>\n<p style=\"margin-left:11%;\"><small>CONTEXT<\/small><\/p>\n<p style=\"margin-left:17%;\">How many lines before and after each diff to display. Ignored on old-style diffs. Defaults to 3.<\/p>\n<p style=\"margin-left:11%;\"><small>OUTPUT<\/small><\/p>\n<p style=\"margin-left:17%;\">Examples and their equivalent subroutines:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">OUTPUT => *FOOHANDLE, # like: sub { print FOOHANDLE shift() } <br \/> OUTPUT => $output, # like: sub { $output .= shift } <br \/> OUTPUT => @output, # like: sub { push @output, shift } <br \/> OUTPUT => sub { $output .= shift },<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">If no &#8220;OUTPUT&#8221; is supplied, returns the diffs in a string. If &#8220;OUTPUT&#8221; is a &#8220;CODE&#8221; ref, it will be called once with the (optional) file header, and once for each hunk body with the text to emit. If &#8220;OUTPUT&#8221; is an IO::Handle, output will be emitted to that handle.<\/p>\n<p style=\"margin-left:11%;\"><small>FILENAME_PREFIX_A, FILENAME_PREFIX_B<\/small><\/p>\n<p style=\"margin-left:17%;\">The string to print before the filename in the header. Unused on &#8220;OldStyle&#8221; diffs. Defaults are &#8220;\u2212\u2212\u2212&#8221;, &#8220;+++&#8221; for Unified and &#8220;***&#8221;, &#8220;+++&#8221; for Context.<\/p>\n<p style=\"margin-left:11%;\"><small>KEYGEN, KEYGEN_ARGS<\/small><\/p>\n<p style=\"margin-left:17%;\">These are passed to &#8220;traverse_sequences&#8221; in Algorithm::Diff.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Note<\/b>: if neither &#8220;FILENAME_&#8221; option is defined, the header will not be printed. If at least one is present, the other and both &#8220;MTIME_&#8221; options must be present or &#8220;Use of undefined variable&#8221; warnings will be generated (except on &#8220;OldStyle&#8221; diffs, which ignores these options).<\/p>\n<h2>Formatting Classes <a name=\"Formatting Classes\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These functions implement the output formats. They are grouped in to classes so &#8220;diff()&#8221; can use class names to call the correct set of output routines and so that you may inherit from them easily. There are no constructors or instance methods for these classes, though subclasses may provide them if need be.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Each class has &#8220;file_header()&#8221;, &#8220;hunk_header()&#8221;, &#8220;hunk()&#8221;, and &#8220;footer()&#8221; methods identical to those documented in the &#8220;Text::Diff::Unified&#8221; section. &#8220;header()&#8221; is called before the &#8220;hunk()&#8221; is first called, &#8220;footer()&#8221; afterwards. The default footer function is an empty method provided for overloading:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">sub footer { return &#8220;End of patchn&#8221; }<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some output formats are provided by external modules (which are loaded automatically), such as Text::Diff::Table. These are are documented here to keep the documentation simple.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Text::Diff::Base<\/b> <br \/> Returns &#8220;&#8221; for all methods (other than &#8220;new()&#8221;).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Text::Diff::Unified<\/b> <br \/> \u2212\u2212\u2212 A Mon Nov 12 23:49:30 2001 <br \/> +++ B Mon Nov 12 23:49:30 2001 <br \/> @@ \u22122,13 +2,13 @@ <br \/> 2 <br \/> 3 <br \/> 4 <br \/> \u22125d <br \/> +5a <br \/> 6 <br \/> 7 <br \/> 8 <br \/> 9 <br \/> +9a <br \/> 10 <br \/> 11 <br \/> \u221211d <br \/> 12 <br \/> 13 <br \/> Text::Diff::Unified::file_header<\/p>\n<p style=\"margin-left:17%;\">$s = Text::Diff::Unified\u2212>file_header( $options );<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Returns a string containing a unified header. The sole parameter is the &#8220;options&#8221; hash passed in to &#8220;diff()&#8221;, containing at least:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">FILENAME_A => $fn1, <br \/> MTIME_A => $mtime1, <br \/> FILENAME_B => $fn2, <br \/> MTIME_B => $mtime2<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">May also contain<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">FILENAME_PREFIX_A => &#8220;\u2212\u2212\u2212&#8221;, <br \/> FILENAME_PREFIX_B => &#8220;+++&#8221;,<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">to override the default prefixes (default values shown).<\/p>\n<p style=\"margin-left:11%;\">Text::Diff::Unified::hunk_header<\/p>\n<p style=\"margin-left:17%;\">Text::Diff::Unified\u2212>hunk_header( @ops, $options );<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Returns a string containing the heading of one hunk of unified diff.<\/p>\n<p style=\"margin-left:11%;\">Text::Diff::Unified::hunk<\/p>\n<p style=\"margin-left:17%;\">Text::Diff::Unified\u2212>hunk( @seq_a, @seq_b, @ops, $options );<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Returns a string containing the output of one hunk of unified diff.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Text::Diff::Table<\/b> <br \/> +\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+ <br \/> | |..\/Test\u2212Differences\u22120.2\/MANIFEST | |..\/Test\u2212Differences\/MANIFEST | <br \/> | |Thu Dec 13 15:38:49 2001 | |Sat Dec 15 02:09:44 2001 | <br \/> +\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+ <br \/> | | bodies manpages.csv script_extrae_body.sh script.sh usr 1|Changes bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> | 1|Differences.pm | 2|Differences.pm | <br \/> | 2|MANIFEST | 3|MANIFEST | <br \/> | | bodies manpages.csv script_extrae_body.sh script.sh usr 4|MANIFEST.SKIP bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> | 3|Makefile.PL | 5|Makefile.PL | <br \/> | | bodies manpages.csv script_extrae_body.sh script.sh usr 6|t\/00escape.t bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> | 4|t\/00flatten.t | 7|t\/00flatten.t | <br \/> | 5|t\/01text_vs_data.t | 8|t\/01text_vs_data.t | <br \/> | 6|t\/10test.t | 9|t\/10test.t | <br \/> +\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This format also goes to some pains to highlight &#8220;invisible&#8221; characters on differing elements by selectively escaping whitespace:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">+\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+ <br \/> | |demo_ws_A.txt |demo_ws_B.txt | <br \/> | |Fri Dec 21 08:36:32 2001 |Fri Dec 21 08:36:50 2001 | <br \/> +\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+ <br \/> | 1|identical |identical | <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 2| spaced in | also spaced in bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 3|embedded space |embedded tab bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> | 4|identical |identical | <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 5| spaced in |ttabbed in bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 6|trailing spacesssn |trailing tabsttn bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> | 7|identical |identical | <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 8|lf linen |crlf linern bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 9|embedded ws |embeddedtws bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> +\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212\u2212+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">See Text::Diff::Table for more details, including how the whitespace escaping works.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Text::Diff::Context<\/b> <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr A Mon Nov 12 23:49:30 2001 <br \/> \u2212\u2212\u2212 B Mon Nov 12 23:49:30 2001 <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> bodies manpages.csv script_extrae_body.sh script.sh usr 2,14 bodies manpages.csv script_extrae_body.sh script.sh usr <br \/> 2 <br \/> 3 <br \/> 4 <br \/> ! 5d <br \/> 6 <br \/> 7 <br \/> 8 <br \/> 9 <br \/> 10 <br \/> 11 <br \/> \u2212 11d <br \/> 12 <br \/> 13 <br \/> \u2212\u2212\u2212 2,14 \u2212\u2212\u2212\u2212 <br \/> 2 <br \/> 3 <br \/> 4 <br \/> ! 5a <br \/> 6 <br \/> 7 <br \/> 8 <br \/> 9 <br \/> + 9a <br \/> 10 <br \/> 11 <br \/> 12 <br \/> 13<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: &#8220;hunk_header()&#8221; returns only &#8220;***************n&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Text::Diff::OldStyle<\/b> <br \/> 5c5 <br \/> < 5d <br \/> \u2212\u2212\u2212 <br \/> > 5a <br \/> 9a10 <br \/> > 9a <br \/> 12d12 <br \/> < 11d<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: no &#8220;file_header()&#8221;.<\/p>\n<h2>LIMITATIONS <a name=\"LIMITATIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Must suck both input files entirely in to memory and store them with a normal amount of Perlish overhead (one array location) per record. This is implied by the implementation of Algorithm::Diff, which takes two arrays. If Algorithm::Diff ever offers an incremental mode, this can be changed (contact the maintainers of Algorithm::Diff and &#8220;Text::Diff&#8221; if you need this; it shouldn\u2019t be too terribly hard to tie arrays in this fashion).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Does not provide most of the more refined <small>GNU<\/small> &#8220;diff&#8221; options: recursive directory tree scanning, ignoring blank lines \/ whitespace, etc., etc. These can all be added as time permits and need arises, many are rather easy; patches quite welcome.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Uses closures internally, this may lead to leaks on Perl versions 5.6.1 and prior if used many times over a process\u2019 life time.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Algorithm::Diff \u2212 the underlying implementation of the diff algorithm used by &#8220;Text::Diff&#8221;.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">YAML::Diff \u2212 find difference between two <small>YAML<\/small> documents.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">HTML::Differences \u2212 find difference between two <small>HTML<\/small> documents. This uses a more sane approach than HTML::Diff.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">XML::Diff \u2212 find difference between two <small>XML<\/small> documents.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Array::Diff \u2212 find the differences between two Perl arrays.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Hash::Diff \u2212 find the differences between two Perl hashes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Data::Diff \u2212 find difference between two arbitrary data structures.<\/p>\n<h2>REPOSITORY <a name=\"REPOSITORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><https:\/\/github.com\/neilbowers\/Text\u2212Diff><\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Adam Kennedy <adamk@cpan.org><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Barrie Slaymaker <barries@slaysys.com><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some parts copyright 2009 Adam Kennedy.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 2001 Barrie Slaymaker. All Rights Reserved.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You may use this under the terms of either the Artistic License or <small>GNU<\/small> Public License v 2.0 or greater.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Text::Diff \u2212 Perform diffs on files and record sets <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3233],"class_list":["post-6868","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-textdiff"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6868"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6868\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}