By method, you probably mean a function. You probably source it (
.) to make the function accessible from the current shell. You can call ksh from Perl, which would source the script with the function and run the function:
$output = qx{ /bin/ksh -c ". /path/xyz.ksh ; xxxx arg1 arg2" };
print $output;