http://qs321.pair.com?node_id=189492


in reply to Returning from a program

Well, as a shell programmer you could have guessed it:

exit <statuscode>

see perlfunc exit

your shell code may look like:

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

regards,
tomte