Config:...tension(3)
π NAME π
okay so bestie, meet Config::MVP::Reader::Findable::ByExtension β it's a Findable Reader that looks for files by extension. that's the whole vibe. it finds your config files by their extension. periodt. β¨
this lil queen lives in the User Contributed Perl Documentation section of your manual, just so u know where u are π«Ά
πΈ VERSION πΈ
version 2.200013 β yes, that's the number, no I will not be rounding it π
π¦ PERL VERSION π¦
okay so this module should work on any version of perl still receiving updates from the Perl 5 Porters. what does that mean fr fr? it means any version of perl released in the last two to three years. (that is, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) slay π
although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. the version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. so don't come for her about the ancient perl, bestie π
π METHODS π
β¨ default_extension β¨
this method β which must be composed by classes including this role β returns the default extension used by files in the format this reader can read. like, that's its whole job and it does it beautifully π
when the Finder tries to find configuration, it have a directory root and a basename. (yes, "it have", that's what the original says, we don't edit, we respect π«Ά) each (Findable) reader that it tries in turn will look for a file basename.extension in the root directory. and if exactly one file is found, that file is read. exactly one, bestie. not two. not zero. one π
π refined_location π
this role provides a default implementation of the refined_location method required by Config::MVP::Reader. it will return a filename based on the original location, if a file exists matching that location plus the reader's default_extension. it's giving "here's the file, but only if it's actually there" energy β¨
π AUTHOR π
Ricardo Signes <cpan@semiotic.systems> β the icon behind the curtain π«Ά
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2022 by Ricardo Signes.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in, go off, do ur thing π¦
ngl that's the whole page, bestie. go find those files by extension. iykyk π
and that's a wrap on the Config::...tension(3) page from the User Contributed Perl Documentation β brought to you by perl v5.42.0 and dated 2025-07-25. mwah, bye bestie ππβ¨
π¦ where this page comes from
- fedora 43: perl-Config-MVP 2.200013-9.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Config-MVP 2.200013-9.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms