in reply to Dynamically calling different functions?
my %commands = ( mul => \&mul, add => \&add, set => \&set, ... ); [download]
$commands{$command}($register, $param); [download]