# in your subroutine $ec->configure( -command => $choice ); $ec->execute_command;