** Low Priority **

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.  Another alternative
is to spawn the java program as a separate process using SYSTEM or another 
method.

Avi

>>> "Capacio, Paula J" <[EMAIL PROTECTED]> 01/29/08 3:21 pm >>>
>On Tue, 29 Jan 2008 
>Bilashi Sahu <[EMAIL PROTECTED]> wrote:
>I will appreciate any kind of hints that will help me
>to write automation in perl, (basically how java
>program will be invoked using Perl).
> 
You could use backticks to execute a system command like so:
my $command = "java -jar $pathLoc$jarName @ARGV"; 
my @system_out = `$command`;
HTH, Paula
 
_______________________________________________
ActivePerl mailing list
[email protected] 
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to