PFT::Util(3)
β¨ PFT::Util β¨
okay bestie, so this is PFT::Util from the User Contributed Perl Documentation section (section 3, the library pages, iykyk) π«Ά and it's genuinely just a lil grab-bag of helper stuff, but it's useful helper stuff so let's go π
πΈ NAME πΈ
PFT::Util β Utilities β¨
π¦ DESCRIPTION π¦
okay so basically, this module is where all the general utility functions live. not like, a specific job, just the lil friends that help everything else out π§
π files π
List all files under the given directories. that's it, that's the whole vibe. you hand it some dirs, it hands you back every file chilling underneath them π
list_files 'foo' 'bar'
okay and now the tea β β the docs are very upfront that this is definitely off-scope, but sometimes perl modules are just really bad, okay?? and File::Find is an utter crap! π like, that's a direct quote, no cap. and the author does not want to add more external deps for such a stupid thing, which honestly? valid. main character energy π
oh also β this handles encoding according to locale π so the filenames come back all proper and unicode-correct, not a garbled mess.
π locale_glob π
a unicode-safe glob ⨠the way that it just⦠works with your weird filenames?? iconic.
it uses the encoding specified in locale π¦
and the way it's different from CORE::glob is that it accepts a list of glob patterns π like, plural, multiple patterns, one call. CORE::glob could never fr fr π
β οΈ friendly reminder bestie: File::Find catching strays in the official docs is canon now, we do not make the rules π«Ά
and that's the whole page, babe β¨ this one shipped with perl v5.42.0 and got dated 2025-07-25 πΈ so like, go forth and list your files, stay unicode-safe, and remember: you're doing amazing sweetie πππ¦
π¦ where this page comes from
- fedora 43: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- fedora 44: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms