@thread = $session->executeProgram( $program, \@args )
The executeProgram() function is an alias for execute(). The section “execute” on page 76 provides additional information.
The executeProgram() function executes an Smarts program, passing arguments to it.
The following example runs the dmdebug plug-in, displaying statistics information on the stdout file of the sm_server process.
@thread = $session->executeProgram ( "dmdebug", [ "dmdebug", "--stats" ] );