This is the revision history for dispatch table in <matrix.org:#DYJOMClZbVOMHnzPQt:matrix.org>
factoid_id | subject | copula | predicate | author | namespace |
---|---|---|---|---|---|
9864 | dispatch table | is | A hash that maps strings to coderefs. eg my %dispatch = ( foo => sub { print "foo" } , bar => \&some_other_sub, baz => sub { print for @_ } ); To use: $dispatch{$action}->(@arguments); (or $dispatch{$action}->() if no arguments) | altreus | <*:##NULL> |
3911 | dispatch table | is | A hash table containing mapping strings to coderefs. eg my %dispatch = ( foo => sub { print "foo" } , bar => \&some_other_sub, baz => sub { print for @_ } ); To use: $dispatch{$action}->(@arguments); (or $dispatch{$action}->() if no arguments) | perlbot | <*:##NULL> |