in reply to Re: modify ksh variable in perl
in thread modify ksh variable in perl

Revised: Exit returns a number only; of limited use when setting environmental variables. Plesae reap.

Or, if it's more than a one-liner, the Perl script should end with

exit( $returned_value );