in reply to Dispatch table with parameter

You would do well to post the actual code you are running; without the do_something sub, we can't give you specific help. I can, however, confirm that dispatch table subs can take parameters:

my %dispatch = ( something => \&my_sub ); $dispatch{something}->("Hello, world."); sub my_sub { my $param = shift; print "my_sub says `$param'"; } __END__ Output: my_sub says `Hello, world.'