Converting perl to python available?

Wayne Ringling wayne at tbnets.com
Sat Oct 27 09:30:31 EDT 2001


Ouch, that was close. It's just that I have a program that's 74 pages
printed and it's actually lean and mean as far as coding goes.   I guess
it's time to go back to the guts and gore and recode it.

Wayne

> -----Original Message-----
> From: python-list-admin at python.org
> [mailto:python-list-admin at python.org]On Behalf Of Gerhard Haring
> Sent: Saturday, October 27, 2001 7:04 AM
> To: python-list at python.org
> Subject: Re: Converting perl to python available?
>
>
> On Fri, Oct 26, 2001 at 10:37:35PM -0400, Wayne Ringling wrote:
> > I have a few programs that I would love to convert to python
> but don't want
> > to spend the time to recode them completly.
>
> import os
> os.system("myscript.pl")
>
> ;-)
>
> > Is there a project that is working on a conversion program yet?
>
> Seriously, has there ever been a translator from one language to another
> that did not produce an absolute mess? I imagine it will only work
> reasonably well for similiar languages, like Pascal -> Ada. But Perl and
> Python are very different. Perl regexes would have to be translated to
> Python library calls, for example ... What point would there be to
> having translated code that is a greater mess than the original Perl
> code <ducks>?
>
> Gerhard
> --
> mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
> web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
> public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
> reduce(lambda x,y:x+y,map(lambda
> x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>





More information about the Python-list mailing list