in reply to Nested Dispatch Tables?
You can use any structure as a dispatch table (although they may not all fit the formal definition), including a HoH ($dispatch{$type}{$action} = $sub). A regular hash would work if you decided upon a method for concatenating params into a single string to use as a key ($dispatch{ $type . '_' . $action }).
Perhaps I do not understand what you mean by a 'nested' dispatch table. Please elaborate if I'm missing the question.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nested Dispatch Tables?
by Spidy (Chaplain) on Mar 24, 2008 at 16:22 UTC | |
by dirving (Friar) on Mar 24, 2008 at 19:23 UTC | |
by jfraire (Beadle) on Mar 25, 2008 at 01:26 UTC |