wrap the system call with an eval block and then do what you want to with the return value.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Avraham Shapiro Sent: Tuesday, January 29, 2008 3:56 PM To: [email protected] Subject: Re: Need help how to run java program Importance: Low ** Low Priority ** What I meant is the semantics of backticks indicate that an exception that occurrs in the command enclosed by backticks are propagated to the initiating process at the point of the backticks. If the java program unexpectedly dies with a fatal exception this will kill the PERL program too, unless an EVAL block encloses the backticks to provide exception handling. HTH Avi >>> Kenneth ײlwing <[EMAIL PROTECTED]> 01/29/08 3:47 pm >>> > Be wary that a fatal exception in the java program if unhandled will be propagated to > your PERL program and kill it, unless you protect the call to java with an eval block. Huh??? Explain please. > Another alternative > is to spawn the java program as a separate process using SYSTEM or another method. > Which is basically the way it has to be done - system, backtick, pipe open etc. ken1 _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
