in reply to Testing Java code
You can run an external command using system (if you don't need to capture the output) or backticks (``) or qx// if you do need to capture the output. It looks like you probably want to use backticks or qx//:
my $output = qx/java .../;
Update: If you capture the output in an array, you get a list of lines instead of one big string...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing Java code
by Skeeve (Parson) on Sep 30, 2005 at 05:43 UTC | |
by drawde83 (Acolyte) on Sep 30, 2005 at 09:46 UTC | |
by Roy Johnson (Monsignor) on Sep 30, 2005 at 12:40 UTC | |
by hakkr (Chaplain) on Sep 30, 2005 at 13:08 UTC |