in reply to Re: Nested Dispatch Tables?
in thread Nested Dispatch Tables?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Nested Dispatch Tables?
by dirving (Friar) on Mar 24, 2008 at 19:23 UTC | |
|
Re^3: Nested Dispatch Tables?
by jfraire (Beadle) on Mar 25, 2008 at 01:26 UTC |