Text::Diff::Config(3)
π Text::Diff::Config(3) β like, the manual page, bestie
okay so real talk, this is Text::Diff::Config(3) from the User Contributed Perl Documentation and it is genuinely one of the shortest manpages you will ever meet. it's a whole module whose entire personality is one boolean. and honestly? icon behaviour. π
β¨ NAME β¨
Text::Diff::Config β global configuration for Text::Diff (as a separate module).
yes bestie, as a separate module. that's the whole bit. it's the config shelf for Text::Diff, living on its own so it can vibe independently. π¦
πΈ SYNOPSIS πΈ
use Text::Diff::Config;
$Text::Diff::Config::Output_Unicode = 1;
that's it. that's the synopsis. two lines. load the module, flip the flag to 1, and you are done β main character energy, minimal effort. π
π§ DESCRIPTION π§
so here's the tea: this module configures Text::Diff and its related modules. π«Ά
right now β and "currently" is doing a lot of work in that sentence β it contains only one global variable:
$Text::Diff::Config::Output_Unicodeβ a boolean flag. if it's set, unicode characters get output as themselves, without escaping them first as" \x{HHHH} ". so instead of a bunch of sad little escape sequences, you get the actual pretty characters. slay. β¨
it gets initialized to the value of $ENV{DIFF_OUTPUT_UNICODE} β so yes, you can absolutely set that env var and have it just work, iykyk. π
but also? you can set it to a different value at run-time, no problem. including using local. π©·
lowkey the most important part: local. go off with your dynamically scoped little flag, bestie, it's valid and it's beautiful.
π AUTHOR π
Shlomi Fish, <http://www.shlomifish.org/> .
we stan. π
π LICENSE π
Copyright 2010, Shlomi Fish.
this file is licensed under the MIT/X11 License: <http://www.opensource.org/licenses/mit-license.php>.
and because we do not skip the boring parts around here (especially not the legally-load-bearing ones, no cap), here is the whole thing, verbatim, character for character: π
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
β οΈ and yes, THE SOFTWARE IS PROVIDED "AS IS" means exactly what it sounds like β no warranty, express or implied, none, nada. if it breaks, it breaks, and that's literally in the contract. read it. π
π¦ a tiny meta note π¦
the source page literally runs NAME β SYNOPSIS β DESCRIPTION β AUTHOR β LICENSE and then does the entire thing again from the top, word for word. not me noticing that π β but we're not making you read the whole license twice, bestie. once is enough. it's giving copy-paste, and honestly? relatable.
π sign-off π
and that's the page!! rendered from perl v5.42.0, dated 2017-08-19, and filed under Text::Diff::Config(3). short page, big heart, one whole boolean. periodt. π β¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Text-Diff 1.45-160000.2.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms