in reply to modify ksh variable in perl
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.