Tuesday, July 28, 2009

How to convert Perl code to Java?

I want to convert an application written in Perl to Java/J2EE. What will be the best approach to convert perl to Java.

How to convert Perl code to Java?
You can use Perl with Java. The simplest interface is called Inline::Java, and can be found in the CPAN. You can also intermingle Java and Perl applications, using the "JPL" library.
Reply:You'd probably have to reverse engineer it to pseudocode or flowchart and then write it from scratch in Java as a servlet or JSP.





Perl, as an interpreted scripting language with modules that don't map easily to any Java classes, is so utterly different in conception, there's no other conceivable route.


No comments:

Post a Comment