title: How do I return a Perl variable to a ksh script?
body: <p>I have a ksh script that calls a Perl program. The Perl program creates some important data that the ksh script needs to act on. Example:</p>
  
  <p>My ksh program:</p>
  
  <pre><code>#!/usr/bin/ksh
  abc.pl &gt; $logFile
  # perl pgm creates variable $importantData   See below.
  #  HOW DO I GET THE .KSH SCRIPT TO SEE $importantData  ???
  def.ksh $importantData  # send important data to another .ksh script
  exit
  </code></pre>
  
  <p>My Perl program:</p>
  
  <pre><code>$importantData = somefunction();
  exit;
  </code></pre>