my $cmd = `&test($param1, $param2)` ;#Subroutine to be called by the Tk::ExecuteCommand button click #### my $cmd= sub { test($param1, $param2); };