PreferredMethod(3pm)
π PreferredMethod π
okay so bestie, welcome to PreferredMethod(3pm) β a lil gem from the User Contributed Perl Documentation corner of the world, and honestly? she's serving. β¨
π NAME π
XMLTV::PreferredMethod β bestie, what it does is literally in the name: it adds a preferredmethod argument to XMLTV grabbers. that's the whole vibe. π«Ά
β¨ DESCRIPTION β¨
so here's the tea π΅ β this module adds a --preferredmethod argument to your program. iconic, right? you set it up like this:
use XMLTV::PreferredMethod 'allatonce';
and now the fun part, pay attention π
β if a --preferredmethod parameter gets supplied on the command-line, it's already caught by that use statement. like, it never even makes it to your code. the string you supplied in the use-line gets printed to STDOUT, and then the program just exits. boom. done. periodt. π
no cap, that's genuinely all she does β she catches the flag, prints your string, and dips. main character exit. π
and bestie, please don't forget to announce the preferredmethod capability as well. it's giving manners. it's giving good citizenship. do it. π
πΈ SEE ALSO πΈ
XMLTV::OptionsXMLTV::Capabilities
go read those too, iykyk πβ¨
and that's the whole page, babes π¦ β this one shipped as part of perl v5.40.1, dated 2025-04-19, and it's filed under User Contributed Perl Documentation. slay, stay hydrated, and remember: announce your capabilities. ππβ
π¦ where this page comes from
- debian trixie: libxmltv-perl 1.4.0-1 Β· GPL-2.0-only
- ubuntu resolute: libxmltv-perl 1.4.0-1 Β· GPL-2.0-only
- ubuntu stonking: libxmltv-perl 1.4.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms