Perl -> Python hopeless?

Trent Mick trentm at
Fri Jul 18 21:55:10 CEST 2003

[Helmut Jarausch wrote]
> Hi,
> having been a Perl fan for years I have nearly converted to Python.
> Still, there are LOTS and very good modules written in Perl.
> Is there a tool to lesson the burdon of translation of Perl to Python?
> I am completely aware of the fact that a fully automatic translation
> to readable Python source is hard if not impossible.
> But such a tool could lots of the tedious work like replacing
> braces by proper indentation and and similar things.
> Thanks for a pointer (if there is one)

There is a project called PyPerl that was developed here at ActiveState
to help integrate Perl support into Zope. Here is a wiki for PyPerl:

Try this (YMMV):
    - install ActivePython 2.2
    - install ActivePerl 5.6
    - install PyPerl into your Perl and Python installations:
        pyppm install PyPerl
    - startup python and try to use the 'perl' module:
        >>> import perl
        >>> print perl.eval("3+3")
    - read some docs on how to use it:

I can't test this on my machine right now so I can't be sure that the
above works smoothly.


Trent Mick
TrentM at

More information about the Python-list mailing list