my %op_map=( 'OP1' => \&op1, 'OP2' => \&op2 ); my $op_choice='OP1'; #Need to execute the op1 function here.