http://www.perlmonks.org?node_id=314337

if you've got python code that you need to convert to perl, Perthon could come in handy.

ok, honestly, i'm not really sure what niche it's supposed to fill, but if you're familiar with Parse::RecDescent grammars and want to learn python, reading the source code for perthon could be a good start...

Replies are listed 'Best First'.
Re: perthon
by hanenkamp (Pilgrim) on Dec 12, 2003 at 17:21 UTC

    We have a good natured Python-versus-Perl rivalry in my office. So, I decided to fire of this email to my coworkers:

    Posted today on PerlMonks was an interesting tool. Eventually, I hope you Python monkeys will come to your senses and turn to Perl for sanity. To ease such transition, see the Perthon project:
    http://perthon.sourceforge.net
    Now, your Python code can be reborn as the Perl it always should have been.

    Really though, I've always thought the idea of language-to-language translators was interesting even if they're not often useful.

Re: perthon
by zentara (Archbishop) on Dec 12, 2003 at 17:28 UTC
    I'm just a casual observer of Perl6 and parrot development; but isn't it one of the stated goals of parrot to be the underlying engine for Perl and Python, and possibly other languages? That should make translating easy.
      Or more probably, simply unnecessary. (Indeed, Parrot is intended to run a lot more than Perl - not just Python, also Ruby and many (if not most) other "agile" languages.)

      Makeshifts last the longest.