PreferredMethod(3pm)

πŸ“¦
version 1.4.0 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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::Options
  • XMLTV::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