my %hash = map { my $item = pop @$_; map { $_, $item } @$_ } [qw(HELP ?) => sub { ... }], [qw(QUIT EXIT LEAVE) => sub { ... }], ...;
-- Randal L. Schwartz, Perl hacker
In reply to RE: multiple keys - one value
by merlyn
in thread using a hash of functions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |