Yes a dispatch table would be poifict.my $dispatch = { foo => \&foo, bar => sub { print "an anon sub\n" }, baz => \&Package::function };
<cough>
The hackish solution would be
And definitely for the likes of obfu. Ahem.
</cough>
HTH
_________
broquaint
In reply to Re: executing subroutines via variable
by broquaint
in thread executing subroutines via variable
by Angel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |