my $operation2func = { 'add' => sub { return $_[0] + $_[1] }, 'sub' => sub { return $_[0] + $_[1] }, 'rnd' => sub { return $_[0] + $_[1] }, };