Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Tk::Submethods (3)

Name

Tk::Submethods - commands

Synopsis

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

Description

User Contributed Perl Documentation                              Submethods(3)



NAME
       Tk::Submethods - add aliases for tk sub-commands

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

DESCRIPTION
       Creates "->commandSub(...)" as an alias for "->command('sub',...)"
       e.g. "->grabRelease" for "->grab('release')".

       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 callers package.

       Someday the sub-commands may be created directly in the C code.



ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+----------------------------+
       |ATTRIBUTE TYPE |      ATTRIBUTE VALUE       |
       +---------------+----------------------------+
       |Availability   | library/perl-5/perl-tk-532 |
       +---------------+----------------------------+
       |Stability      | Volatile                   |
       +---------------+----------------------------+

NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/~srezic/Tk.



perl v5.32.0                      2013-11-15                     Submethods(3)