JojoLinkyBob has asked for the wisdom of the Perl Monks concerning the following question:

I've just been assigned a task of writing a test procedure in Python, which already exists as Perl script, but because the company has only certified Python, I'm required to use Python...

So... I was wondering if there's any nice perl2python program out there that does a decent job of converting?
Thx

Desert coder
  • Comment on Help! Trying to avoid the dark side of Python

Replies are listed 'Best First'.
Re: Help! Trying to avoid the dark side of Python
by chromatic (Archbishop) on Nov 28, 2001 at 00:36 UTC
    It's not exactly what you want, but Acme::Bleach makes whitespace significant. Very significant.

      ROTFLMAO, much to the confusion of my coworkers :)

      That's frickin' hilarious, but I'd like to see someone maintain that :)

      Cheers,
      Ovid

      Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

        And the source is even funnier!

        -- iakobski

Re: Help! Trying to avoid the dark side of Python
by runrig (Abbot) on Nov 28, 2001 at 00:12 UTC
    Does Python have the equivalent of a system command (it must, eh)? Then just put in the Python program (using python syntax, of course):
    system('perl old_perl_script');
    ...and see how long it takes anyone to notice :-)
      Nice try, but that might not pass peer review :)
      Desert coder
Re: Help! Trying to avoid the dark side of Python
by mitd (Curate) on Nov 28, 2001 at 00:16 UTC
    Its still pretty immature but you might checkout Parrot.

    mitd-Made in the Dark
    'Interactive! Paper tape is interactive!
    If you don't believe me I can show you my paper cut scars!'