MouseX...TypeMap(3pm)

πŸ“¦
version 0.38 Β· 4 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

✨ 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_name
  • get_option_type ($type_or_name) β€” takes $type_or_name
  • add_option_type_to_map ($type_name, $option_spec) β€” takes $type_name and $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