Getopt...Options(3pm)

πŸ“¦
version 0.26 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Getopt::Complete::LazyOptions β€” it's an internal object that just... chills there as a placeholder for options nobody's processed yet πŸ’…

Like, it's the "brb bestie, not ready yet" of option objects. It holds the spot. It does not commit. We respect it. 🫢


🌸 VERSION 🌸

This doc is describing Getopt::Complete::LazyOptions 0.26 β€” that's the one, no cap. πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

use Getopt::Complete (
    "foo=n" => [11,22,33],
    "bar=s" => "f",
    ">"     =>  sub {
                            my $values = [];
                            # code to generate completions for this option here...
                            return $values;
                        }
);

okay so that ">" key with the coderef? That's your little custom completion machine ✨ β€” you get handed a coderef, you build up an array of $values, you return $values, and boom, completions for that option are generated. Iconic behavior honestly. 🌈


πŸ’– DESCRIPTION πŸ’–

This class is used internally by Getopt::Complete::Options. 🧚

That's the whole vibe β€” it's a behind-the-scenes little helper, not something you're meant to be calling up on main. It's giving ✨background character who is secretly carrying the entire plot✨. If you're here reading this, you probably wandered into the internals, and honestly? Respect. πŸ™ˆ


This page comes to you courtesy of perl v5.36.0, dated 2022-10-13, and it lives under the Getopt...Options(3pm) banner. πŸ’œ Stay nosy, bestie, that's how you learn. πŸŽ€

πŸ“¦ where this page comes from