MooseX:...Element(3)

πŸ’– NAME πŸ’–

Okay bestie, this is MooseX::App::ParsedArgv::Element from the User Contributed Perl Documentation β€” the parsed logical element from @ARGV ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Every single instance of this class is one logical entity from @ARGV. Like, one vibe-sized piece of your command line, wrapped up as an object πŸ’…

✨ METHODS ✨

πŸ”‘ key

The parameter value or option key. This is the label/identity situation, iykyk.

πŸŽ€ value

An arrayref of values. Each value is represented by a MooseX::App::ParsedArgv::Value object πŸ’–

βž• add_value

Appends a value. Add it, bestie 🫢

🌸 all_scalar_values

All the values as scalars, in supplied order. Order is preserved, no cap ✨

πŸ¦‹ all_values

All the values as MooseX::App::ParsedArgv::Value objects, in supplied order. Same order energy, just object mode πŸ‘‘

⭐ last_value

The last value as a MooseX::App::ParsedArgv::Value object, as given by supplied order. It’s giving final boss of the value list πŸ’…

🏷️ type

The type of element. Can be 'option', 'parameter' or 'extra'. That’s the whole type menu, periodt πŸ’–

βœ… consumed

A flag that indicates if the element was already consumed. Was it eaten? This flag knows πŸ‘€

🍽️ consume

Consumes the element. Dies if the element is already consumed. So like, don’t double-eat it β€” that’s a fatal situation, bestie 😭

πŸ“¦ serialize

Serializes the element. Heads up: it does not procuce output that is identical with the original @ARGV πŸ™ˆ (that spelling is straight from the original, okay? πŸ’…)

πŸ” original

Tries to re-create the original input. It’s doing its best to bring the original vibe back 🌈


Later, bestie πŸ«ΆπŸ’– β€” this page comes from perl v5.42.0, dated 2024-08-09, and it’s all about MooseX:...Element(3) ✨

πŸ“¦ where this page comes from