Java – How to convert OO Perl to Java

javaperl

I inherited large monolithic body of OO Perl code that needs to be gradually converted to Java (per client request). I know both languages but am rusty on my Perl skills. Are there any tools (Eclipse plugins?) that you folks can recommend to ease the pain?

Best Answer

Does OO code use Moose? If yes, it is possible to convert class declarations automatically using introspection.

To gradually convert Perl to Java, you can include Java code into Perl program with Inline::Java.

There is Perl on JVM project, maybe it can be used to compile Perl to Java?