In <mailman.2117.1 167378630.32031 .python-list@python.org >,
ΧÏυσάνθΠ· Αϊναλή wrote:
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.
In <mailman.2117.1 167378630.32031 .python-list@python.org >,
ΧÏυσάνθΠ· Αϊναλή wrote:
>
>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 ;)
>
>
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.
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."
Comment