How can I call Perl from Java?

前端 未结 9 1722
自闭症患者
自闭症患者 2020-12-04 22:42

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?

9条回答
  •  暖寄归人
    2020-12-04 23:37

    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.

提交回复
热议问题