additionally, <i>system</i> returns a status, not data from code B. If you want to catch data printed from B to A, you could use backticks or you could fork code B as a child process using <b>-¦</b> or <i>fork</i>.<br>The backtick approach might look like this.....<br>Code A runs code B via the backticks and catches prints from code B.<br><br><b>Code A:</b><br>#!/usr/local/bin/perl<br>$stuff = `codeB startedInCodeA`; # run codeB and catch output of B<br>print "In codeA, codeB returned - $stuff.\n";<br><br><b>Code B:</b><br>#!/usr/local/bin/perl<br>$var = @ARGV[0]; # first command line arg<br>print "$var"; # print var to STDOUT which goes <br> # back to the parent process, codeA.<br><br><br>Forks are a little more complicated........ask if the above does not help.<br><br>Good Luck......