Connecting Tech Pros Worldwide Forums | Help | Site Map

Convert Perl to Python

=?ISO-8859-7?B?1/H189zt6Ocgwfrt4eve?=
Guest
 
Posts: n/a
#1: Dec 29 '06
How can I convert a perl script to Python?

Thank you!

Marc 'BlackJack' Rintsch
Guest
 
Posts: n/a
#2: Dec 29 '06

re: Convert Perl to Python


In <mailman.2117.1167378630.32031.python-list@python.org>,
Χρυσάνθη Αϊναλή wrote:
Quote:
How can I convert a perl script to Python?
Look what the Perl script does and then rewrite it in Python. Automatic
translations between programming languages, if possible, usually result in
code that is not supposed to be read by human beings. Every language has
its idioms and a "literal" translation looks very odd to "native speakers"
of the target language.

Ciao,
Marc 'BlackJack' Rintsch
Tim Daneliuk
Guest
 
Posts: n/a
#3: Dec 29 '06

re: Convert Perl to Python


Marc 'BlackJack' Rintsch wrote:
Quote:
In <mailman.2117.1167378630.32031.python-list@python.org>,
Χρυσάνθη Αϊναλή wrote:
>
Quote:
>How can I convert a perl script to Python?
>
Look what the Perl script does and then rewrite it in Python. Automatic
translations between programming languages, if possible, usually result in
code that is not supposed to be read by human beings. Every language has
its idioms and a "literal" translation looks very odd to "native speakers"
of the target language.
>
Ciao,
Marc 'BlackJack' Rintsch

Either that or write a perl interpreter in python ;)

--
----------------------------------------------------------------------------
Tim Daneliuk tundra@tundraware.com
PGP Key: http://www.tundraware.com/PGP/
Bruno Desthuilliers
Guest
 
Posts: n/a
#4: Jan 2 '07

re: Convert Perl to Python


Marc 'BlackJack' Rintsch a écrit :
Quote:
In <mailman.2117.1167378630.32031.python-list@python.org>,
Χρυσάνθη Αϊναλή wrote:
>
>
Quote:
>>How can I convert a perl script to Python?
>
>
Look what the Perl script does and then rewrite it in Python. Automatic
translations between programming languages, if possible, usually result in
code that is not supposed to be read by human beings. Every language has
its idioms and a "literal" translation looks very odd to "native speakers"
of the target language.
and might be quite inefficient too...

itoakya@gmail.com
Guest
 
Posts: n/a
#5: Jan 4 '07

re: Convert Perl to Python


pyperl - Perl for Python
------------------------
"This is a Python extension module that makes it possible to embed Perl
interpreter(s) in any Python program. It can be used to invoke
arbitrary Perl code, load any Perl modules and make calls directly
into Perl functions. The Perl code invoked can call back into Python
as it see fit."
http://wiki.python.org/moin/PyPerl
At least, a pacific coexistence between Python and Perl.

Closed Thread