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 🫢


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