Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Porting Perl to Python [closed]

Tags:

python

perl

I am wondering if there are any tips or tricks to converting perl into python. It would be nice if there was a script like python's 2to3. Or perhaps some compatibility libraries. It doesn't have to be complete, anything to help speed up the process would be helpful.

like image 600
rook Avatar asked Apr 08 '10 02:04

rook


People also ask

Can we convert Perl to Python?

In fact, the two languages are as comparable as British and American English. By knowing how to convert a few major differences, a PERL programmer can easily translate codes to Python.

How do I call a Perl script from Python?

Open your Python code in your Python editor of choice. Go to the line in the code where you want to run your Perl script. Type "pyth. RunPerl.

What is the difference between Python and Perl?

Answer: Python and Perl are high-level programming languages that were invented to serve different purposes. Perl was developed by Larry Wall as a Unix-based scripting language for making reports easily. Whereas Python was developed to offer code readability to its users for writing small and large programs.


1 Answers

Keep a phrasebook handy as you go through the code you want to port.

like image 62
mob Avatar answered Sep 22 '22 14:09

mob