I prefer:
return $self->$message_types{$type}->(@args);To me, it looks more like a method call.
Update: Yep, invoking a coderef from a hash is a little too complex for the parser to handle.
In reply to Re^2: Dispatch table within package question
by chromatic
in thread Dispatch table within package question
by hubb0r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |