in reply to calling a function as a value from a hash
$op_map{$op_choice}->(@args);
or, as well
&{$op_map{$op_choice}}(@args);
I prefer the first form.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calling a function as a value from a hash
by betterworld (Curate) on Apr 15, 2007 at 15:25 UTC |