You'll have to remember to shift the package name off the argument list in the subs, but that's the only difference. I don't see what's messy about a hashref, but that's just me.my $dispatch = "sub_c"; TestPkg->$dispatch("Hello!");
Makeshifts last the longest.
In reply to Re: Easy dispatch tables. (pointless?)
by Aristotle
in thread Easy dispatch tables.
by jryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |