Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / Submethods.pod
CommitLineData
86530b38
AT
1
2=head1 NAME
3
4Tk::Submethods - add aliases for tk sub-commands
5
6=for pm Tk/Submethods.pm
7
8=for category Implementation
9
10=head1 SYNOPSIS
11
12 use Tk::Submethods ( 'command1' => [qw(sub1 sub2 sub3)],
13 'command2' => [qw(sub1 sub2 sub3)]);
14
15=head1 DESCRIPTION
16
17Creates C<-E<gt>commandSub(...)> as an alias for C<-E<gt>command('sub',...)>
18e.g. C<-E<gt>grabRelease> for C<-E<gt>grab('release')>.
19
20For each command/subcommand pair this creates a closure with command
21and subcommand as bound lexical variables and assigns a reference to this
22to a 'glob' in the callers package.
23
24Someday the sub-commands may be created directly in the C code.
25
26=cut
27