my %hash = ( foo =>\&do_foo, bar =>\&do_bar, ); #### $hash{foo}->('foo','bar','baz');