$my_perl_exec myprog.pl arg1 arg2 arg3 if [ "${?}" -eq "" ] then blahblah else xxyyzz fi