in reply to Re^2: Testing Java code
in thread Testing Java code

ok I've tried out those methods but when I run the line

 my $output = qx/java MyProgram 50000/

it outputs the time for that the process runs to the screen but I can't retrieve it

Replies are listed 'Best First'.
Re^4: Testing Java code
by Roy Johnson (Monsignor) on Sep 30, 2005 at 12:40 UTC
    It's probably writing it to STDERR. Try
    my $output = qx/java MyProgram 50000 2>&1/

    Caution: Contents may have been coded under pressure.
Re^4: Testing Java code
by hakkr (Chaplain) on Sep 30, 2005 at 13:08 UTC

    sounds like you java program is running then but maybe not exiting,

    try a System.exit();