Hello Joseph,
>> String[] aStr = {"-e", "'print(\"Ola\n\") foreach
(1..100);'"};
>>
>> Process p = r.exec("perl", aStr);
>
> You told the system to open the perl compiler here. You may also have
Offered
> it 100 lines like this:
> "Ola
> ""Ola
> Which Perl would have a very hard time interpreting as code.
[...]
> For what it is worth, perl is generally called with a script name or code
> as the first parameter..
I think you misread. The above calls the following :
perl -e 'print("Ola\n") foreach (1..100);'
which is a valid invocation of perl.
I have no useful information to add, since I do not know why the OP's
program doesn't work. It's been a long time since I've done Java... And I do
agree this is probably not the right place to post this, because the perl
runs well, so the problem is the Java. Still, I thought I'd set the records
straight.
J-S
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>