in reply to Case structures using a hash

Dispatch tables have been around for a while. There is a hint of one from perlman:perlref:
&{ $dispatch{$index} }(1,2,3); # call correct routine
A super search for "dispatch table" yields lots of results: are just a few. ++ anyway :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)