in reply to modify ksh variable in perl

If you want to access the environment variables from perl you need to use $ENV{string}.

That only works for real environment variables, I don't know if ksh exports its internal variables by default.

Modifying an environment variable will not modify it in the calling shell, though.