in reply to modify ksh variable in perl

You can't modify a ksh variable from perl, but you can set a ksh variable to the output of a perl program:
result=$(perl -e ...)
To set an array variable, you can use:
set -A arrayvar $(perl -e ...)
Update: For your specific case, this might work well enough:
set -A result $(echo $string | sed -e 's/;/ /g')

Replies are listed 'Best First'.
Re^2: modify ksh variable in perl
by apl (Monsignor) on Apr 17, 2008 at 16:56 UTC
    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 );