in reply to Re: multiple keys - one value
in thread using a hash of functions
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}();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: multiple keys - one value
by QM (Parson) on Dec 04, 2003 at 07:10 UTC |