Re: [java2perl6] r100 committed - Implemented method to invoke the javap subprocess (invoke_javap)....
[email protected] (Tim Bunce) Mon, 5 Oct 2009 23:21:47 +0100
| Newsgroups | perl.dbdi.dev |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Oct 05, 2009 at 05:19:23PM +0200, Cosimo Streppone wrote:
> Tim wrote:
>
>> To detect errors from javap I'd add something like
>>
>> or die "$JAVAP_EXECUTABLE @{[ %$options ]} @$classes failed.\n";
>>
>
> Is this ok?
>
> http://code.google.com/p/java2perl6/source/detail?r=101
It needs to be on the close() as well. A piped open will only fail if
the pipe(), fork(), or exec() syscals fail. It won't detect the javap
command exiting with an error status.
Tim.