I have also tried it by separating the declaration and population of %h, to no avail.my %h=( HELP => sub {print qq(help\n)}, Q=>$h{HELP}, SAVE=>sub{print qq(save\n)} ); print $h{Q}();
In reply to Re: Re: multiple keys - one value
by NetWallah
in thread using a hash of functions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |