I'd like to execute Perl code efficiently from Java. The purpose of the Perl is mainly to perform regular expression matching (in some tests it Perl was more efficient than Java to do that)
Another option would be to use Runtime.exec() in java to call Perl.
What is the most performant solution? Does one have an advantage over the other? I can't really see any, except that the PerlInterpreter is still experimental and I don't know if that's going to change.
Do you know of any other options to call Perl from Java?
解决方案
Why are you not happy with java.util.regex.Pattern and java.util.regex.Matcher classes that you want to use Perl's regex capabilities? ;-)