MouseX...TypeMap(3pm)
β¨ NAME β¨
MouseX::Getopt::OptionTypeMap β bestie, it's literally just storage for the option-to-type mappings π
This is a perl manual page, section 3pm, from the User Contributed Perl Documentation. Yes the header squishes the name down to MouseX...TypeMap(3pm) like it's texting with a character limit, but the full name is right there in the NAME section and we are using it. π
πΈ DESCRIPTION πΈ
Okay so real talk: this module is the lil closet where the option β‘οΈ type mappings get kept. That's the vibe. π¦
And if you're sitting here like "bestie what do I even do with that," the answer is very much go read the Custom Type Constraints section in the MouseX::Getopt docs. That's where the actual how-to-use-this-module tea is spilled. This page is not gonna gatekeep the explanation from you, it's just pointing you to the right room. π
Here's what this module has got going on:
has_option_type ($type_or_name)β takes$type_or_nameget_option_type ($type_or_name)β takes$type_or_nameadd_option_type_to_map ($type_name, $option_spec)β takes$type_nameand$option_spec
Three little guys. That's the whole roster, no cap, I'm not hiding any extra ones from you. π«Ά
Heads up bestie: the original page doesn't spell out what each of these does beyond their names and arguments, so I'm not gonna make stuff up. The Custom Type Constraints section in MouseX::Getopt is your girl for the real explanation. π
Signing off with the receipts: this page came from perl v5.32.1, dated 2021-09-16. Iconic. Historic. Slay. πβ¨
π¦ where this page comes from
- debian bookworm: libmousex-getopt-perl 0.38-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmousex-getopt-perl 0.38-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmousex-getopt-perl 0.38-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