Or, if it's more than a one-liner, the Perl script should end with
exit( $returned_value );
In reply to Re^2: modify ksh variable in perl by apl in thread modify ksh variable in perl by gfarhat