Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Nested Dispatch Tables?by Spidy (Chaplain) |
on Mar 24, 2008 at 16:22 UTC ( [id://675929]=note: print w/replies, xml ) | Need Help?? |
That sort of sounds like what I'm looking for. In the end, I want to be able to make a call like $actions->{$type}->{$action}->();, or however you'd accomplish the same thing(if that makes any sense) in actually valid Perl. This isn't the most elegant of solutions, but would building my two dispatch tables(something like %objects and %containers) and then storing them into an %actions hash as references work?
In Section
Seekers of Perl Wisdom
|
|