But when I put this perl wrapper in the place of condor_submit and rename the condor_submit binary to condor_submit_real, all sorts of wierd things happen.
Can you be more specific about what happens? Are you using DAGMan?
-alain