0

Possible Duplicate:
How can I convert OO Perl to Java?

Hello.

I have a perl script and I want to translate it to Java.

Is there any translator/conversor from perl script to Java?

By the way, I'm developing an Android 2.2 application.

EDIT
I have closed the question. Stop downvoting me!!!!!! And if you downvote tell us why!!

Thanks.

Community
  • 1
  • 1
VansFannel
  • 45,055
  • 107
  • 359
  • 626
  • @Rafe Kettler: I see you are not absolutly sure if my question is a duplicate of other. -1 vote is yours? – VansFannel Dec 14 '10 at 16:47
  • @VansFannel no, I didn't downvote, I voted to close. I don't think it's a bad question, I just think it's been answered before. – Rafe Kettler Dec 14 '10 at 16:50
  • @Rafe Kettler: Before post my question, I have read the other question. I don't this question is duplicated. Thanks for your info. – VansFannel Dec 14 '10 at 16:54
  • Thank you very much for someone that has downvote me and hasn't said why. – VansFannel Dec 14 '10 at 16:55
  • @VansFennel The message from Rafe Kettler is the automated message that gets posted when you vote to close for a duplicate question. The question mentioned is indeed the same as your question... how do you convert form perl to Java? If you think your question is unique, you need to add additional specific information to that regard. – Cheryl Simon Dec 14 '10 at 18:16
  • see also: http://stackoverflow.com/questions/3399781/why-is-it-not-possible-to-create-a-practical-perl-to-python-source-code-converter which has to do with perl->python, but the answer is the same – Eric Strom Dec 14 '10 at 18:56
  • I have closed the question. Stop downvoting me!!!!!!!! – VansFannel Dec 15 '10 at 12:50
  • People continue downvoting and none say why. Thansk a lot! I will learn a lot with this. – VansFannel Dec 24 '11 at 12:42

3 Answers3

7

You should consider using the Android Scripting Environment so that you can just use your Perl script rather than having to "translate" it to Java (especially if you plan on relying on some translation tool to do it).

It supports Perl, along with Python, Ruby, and some others.

Rafe Kettler
  • 75,757
  • 21
  • 156
  • 151
2

Just my two cents...

I would convert the Perl to Java by hand that way you are 100% in control of the Java code running in your Android application and that way you will understand what the Perl code is actually doing rather than relying on it to work when there is a bug in your Android app.

Melloware
  • 10,435
  • 2
  • 32
  • 62
0

No. There's the JPL project from the 90's that might've been a workaround, but I'm pretty sure it fell apart along the road.

Hugmeir
  • 1,249
  • 6
  • 9