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
- debian trixie: perl-tk 1:804.036+dfsg1-5
- ubuntu questing: perl-tk 1:804.036+dfsg1-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms