Code::...eLines(3pm)
π Code::TidyAll::Plugin::UniqueLines β the perl manual page, bestie edition β¨
okay so real talk: this is a page from the User Contributed Perl Documentation section of the perl man pages, and it's about a little TidyAll plugin that just... deletes your duplicate lines. that's it. that's the whole gig. and honestly? iconic. π
πΈ NAME πΈ
Code::TidyAll::Plugin::UniqueLines β Remove duplicate lines from a file
like, it removes the duplicates. from the file. no notes. π
π VERSION π
version 0.000003
ngl that's a lot of zeros but we respect the semver grind fr fr π«Ά
β¨ SYNOPSIS β¨
here's how you actually summon this thing, and yes this goes in your configuration:
# In configuration:
[UniqueLines]
select = .ispell* **/.gitignore
that's it. that's the whole ritual. drop that select line in and you're cooking. π₯
π¦ DESCRIPTION π¦
so the vibe is: it discards duplicate lines from a file. bye bye, dupes. not me gaslighting your .gitignore into being shorter. π
this is lowkey perfect for any file that's like, one entry per line, bestie. think:
.svnignore.gitignore.ispell*
those files where every line is just A Thing and seeing the same Thing twice is giving clutter, and clutter is not the main character energy we're going for. β¨
π ACKNOWLEDGEMENTS π
okay so full transparency, the author says this code was essentially pilfered from Code::TidyAll::Plugin::SortLines.
we love a reusing-your-own-work moment. recycle, reuse, slay. π
π AUTHOR π
Olaf Alders <olaf@wundercounter.com>
shoutout to Olaf. absolute legend behavior. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014-2017 by Olaf Alders.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so yeah β free software, go wild, just keep the same terms as Perl 5 itself. periodt. π
and that's the whole page bestie!! no cap, this one was short and sweet, which honestly? we love a compact manpage. the docs themselves come from perl v5.36.0, dated 2022-12-02, and it's filed under that same Code::...eLines(3pm) header up top and the footer down below. mwah. πβ¨ ππ¦πΈπ
π¦ where this page comes from
- debian bookworm: libcode-tidyall-plugin-uniquelines-perl 0.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcode-tidyall-plugin-uniquelines-perl 0.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcode-tidyall-plugin-uniquelines-perl 0.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcode-tidyall-plugin-uniquelines-perl 0.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcode-tidyall-plugin-uniquelines-perl 0.000003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms