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.