How can I convert OO Perl to Java?

11,756

Solution 1

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?

Solution 2

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

Share:
11,756
Bostone
Author by

Bostone

Most of my past experience is in Enterprise Java and related technologies. I started working with Java in 1996, prior to that I did about 5 years of C/C++ My last 8 years are all contract jobs for large clients, all loosely related to Spring framework and other various Open Source frameworks. Since 2008 I've been closely involved with Android development, authoring and writing Jobrio (a.k.a. Hire-A-Droid) and Droidin. I'm also collaborating with good folks of Flud reader to deliver Android version of their popular app I also (occasionally) maintain my dev blog

Updated on June 04, 2022

Comments

  • Bostone
    Bostone about 2 years

    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?

  • Kai
    Kai almost 10 years
    inccode.com isn't available anymore. Can this be found somewhere else?
  • Aquarius Power
    Aquarius Power over 6 years
    @Kai any news? that site is no more (it is something else now..)