File::...:Modern(3pm)
β¨ File::Util::Interface::Modern β the modern call interface to File::Util, bestie π
okay so real talk, this is the File::Util::Interface::Modern page from the File::...:Modern(3pm) corner of the perl docs, and it is so short but so important. sit with me for a sec π«Ά
πΈ VERSION
version 4.201720
that's it. that's the version. iconic, no notes β¨
π¦ DESCRIPTION
So basically π this module gives you a ::Modern-style interface for passing arguments to β and between β the public and private methods of File::Util. It's giving glow-up for your function calls.
Back in the day, the call syntax only worked like this:
some_method( main_arg => value, qw/ --opt=value --patern=^foo --flag / )
which, ngl, is a whole vibe of its own, but kind of giving 2010s π
This module lets File::Util work with calls that are way more consistent with current practices in Perl, like this:
some_method( main_arg => { arg => value, opt => value, flag => 1 } );
-or-
some_method( '/var/log' => { match => [ qr/.*\.log/, qr/access|error/ ] } )
look at that. the args are just chilling in a hashref together. the way that flag => 1 just says "yes bestie, this is on" π so clean. so slay. and that second one with '/var/log' and match taking an arrayref of qr/.*\.log/ and qr/access|error/?? chef's kiss π
β οΈ Users, do not use this module by itself. It is intended for internal use only. fr fr, it's not a "you" module, it's a "File::Util's plumbing" module. iykyk π§
that's genuinely the whole page, bestie β short and sweet like a good qw// ππ
this has been File::...:Modern(3pm) from the User Contributed Perl Documentation, running on perl v5.36.0, dated 2022-11-29 πΈ mwah, go read File::Util itself if you want the actual plot πβ¨π¦
π¦ where this page comes from
- debian bookworm: libfile-util-perl 4.201720-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libfile-util-perl 4.201720-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libfile-util-perl 4.201720-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libfile-util-perl 4.201720-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libfile-util-perl 4.201720-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