hdeng419 has asked for the wisdom of the Perl Monks concerning the following question:

Greetings! My problem has been partially solved. Now my code can capture the output of a java prgram called inside of my perl script. But it failed to capture the exception message. Any solution? Thanks in advance.
************ my script ************* #! /per/bin/perl -w use strict; my($program) = 'd:\ema\extension\win32\surveyimport d:\ema\extension\win32\Yahoo.cfg'; my(@res); open(RES, "$program |") || die "Unable to run $program: $!\n"; foreach (<RES>) { push @res, $_; #print "$_"; } print $?; print @res; close(RES); exit(0); ***************************************
  • Comment on can't capture the exception message from java program called by my perl script!
  • Download Code

Replies are listed 'Best First'.
Re: can't capture the exception message from java program called by my perl script!
by Juerd (Abbot) on Apr 19, 2002 at 17:50 UTC
Re: can't capture the exception message from java program called by my perl script!
by particle (Vicar) on Apr 19, 2002 at 17:54 UTC