Alex Rivera | Logout

How can I call Perl from Java?

Asked 2008-11-08T15:44:08.133
16

I have a Perl module that I would like to use from Java. Is there a way to call this code using either ActiveState Perl on Windows or the generic Perl that comes with Linux? I have found references to JPL but it doesn’t appear to be maintained anymore.

Edit
Report

2 Answers

2

Sleep is a scripting language with an interpreter that runs in the JVM. From what I understand the Sleep language is basically Perl with some extensions. Your code may be able to run in Sleep. If it does you can instantiate the interpreter, run the code and retrieve the result.

answered 2010-06-07T13:01:18.097
0

Guess it really depends on what your perl code is, and what you're trying to do..

If just using exec() is too simple, something like gearman could be helpful

answered 2011-07-26T09:44:21.647

Your Answer