Convert Perl to Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-7?B?1/H189zt6Ocgwfrt4eve?=

    Convert Perl to Python

    How can I convert a perl script to Python?

    Thank you!
  • Marc 'BlackJack' Rintsch

    #2
    Re: Convert Perl to Python

    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

    Comment

    • Tim Daneliuk

      #3
      Re: Convert Perl to Python

      Marc 'BlackJack' Rintsch wrote:
      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 ;)

      --
      ----------------------------------------------------------------------------
      Tim Daneliuk tundra@tundrawa re.com
      PGP Key: http://www.tundraware.com/PGP/

      Comment

      • Bruno Desthuilliers

        #4
        Re: Convert Perl to Python

        Marc 'BlackJack' Rintsch a écrit :
        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.
        and might be quite inefficient too...

        Comment

        • itoakya@gmail.com

          #5
          Re: Convert Perl to Python

          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."

          At least, a pacific coexistence between Python and Perl.

          Comment

          Working...