in reply to exporting environment variable to KSH
It can not. This is a feature of processes in the unix model. What you can do however, is have the perl program output the results and assign that to your environment variable:
#!/bin/ksh MYVAR=`perlprogram`
|
|---|