in reply to Easy dispatch tables.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Easy dispatch tables.
by jryan (Vicar) on Apr 03, 2003 at 01:20 UTC | |
by Aristotle (Chancellor) on Apr 03, 2003 at 02:54 UTC | |
by jryan (Vicar) on Apr 03, 2003 at 06:57 UTC | |
by Aristotle (Chancellor) on Apr 03, 2003 at 08:25 UTC | |
by jryan (Vicar) on Apr 03, 2003 at 21:59 UTC | |
|