in reply to How to call .jar files from perl program
To elaborate a little further: exec executes a system command and never returns, system does return. I'd prefer system, something like:
# @args = ("command", "arg1", "arg2"); my @args = ("java", "-jar", "Saxton.jar"); system(@args);
You can inspect the $? variable to check what/if anything went wrong. If you want to capture the output of the command you can use backticks or qx//
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call .jar files from perl program
by anupamde (Initiate) on Jul 14, 2009 at 07:54 UTC | |
|
Re^2: How to call .jar files from perl program
by Anonymous Monk on Jun 22, 2009 at 11:22 UTC | |
by dHarry (Abbot) on Jul 07, 2009 at 11:52 UTC | |
|
Re^2: How to call .jar files from perl program
by Anonymous Monk on Jul 13, 2009 at 15:12 UTC | |
by dHarry (Abbot) on Jul 14, 2009 at 06:39 UTC |