Code::...eLines(3pm)

πŸ“¦
version 0.000003 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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. 🫢


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