Calling perl from shell script

I am calling a perl script from shell script.

$ cat mah_appln_bkp_oln.ksh
#!/bin/ksh
. /udb/home/udbappln/.profile
. /udb/home/udbappln/sqllib/db2profile
Com=/udb/udbappln/utility/systemscripts/currentUMR
perl $Com/backup.pl -d dbname --tsm  --purgetsmcopies 21 --purgetsmlogs
exit 0

Even thought the perl script fails we are exiting with exit 0

if I do exit $? will this exit with exit error that it has received from perl script?

Regards
Prakash

$? holds the exit code from the previously-run command, so yes.

$ perl -e 'exit 1;'
$ echo $?
1

Why didn't you just try it?