Submethods(3pm)

✨ NAME ✨

Tk::Submethods β€” bestie, it adds aliases for tk sub-commands πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

use Tk::Submethods ( 'command1' => [qw(sub1 sub2 sub3)],
                     'command2' => [qw(sub1 sub2 sub3)]);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this module creates ->commandSub(...) as an alias for ->command('sub',...). like, literally ->grabRelease is just ->grab('release') wearing a cuter outfit πŸ’–

For each command/subcommand pair this creates a closure with command and subcommand as bound lexical variables, and assigns a reference to this to a 'glob' in the caller's package. yes bestie, the caller's package β€” that's where the magic lands ✨

Someday the sub-commands may be created directly in the C code. πŸ™ˆ (no cap, that's what the docs say, we're just quoting the prophecy)

and that's the whole vibe, fr fr πŸ’œ this page rode in with the User Contributed Perl Documentation crew, shipped with perl v5.40.1, dated 2025-04-13, and it's called Submethods(3pm) β€” slay, periodt 🫢

πŸ“¦ where this page comes from