tags:

views:

791

answers:

4

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?

A: 

I'd say PLEAC is one of the greatest resources.

Geo
+5  A: 

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?

Alexandr Ciornii
+3  A: 

I wouldn't try a direct translation of Perl OO to some other language. The features in the different languages almost demand different architectures. That is, I wouldn't necessarily structure the code in the same way in a dynamic language like Perl as I would in a more static language like Java. It depends on what sort of Perl you are starting with.

brian d foy
I agree. Basically the way I'm planning it is to use Perl as blueprint and implement functionality gradually by writing Java code that does same thing but with no direct recompilation of Perl to Java
DroidIn.net