RE: PYTHON WORKING WITH PERL ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Blubaugh, David A.

    #1

    RE: PYTHON WORKING WITH PERL ??

    Sir,


    You are absolutely correct. I was praying to G_d I did not have to
    slaughter my project's source code in this manner. However, like life
    itself, I was given legacy source code (i.e. someone else errors to fix)
    in Perl. However, I have just found out that there is a way to import
    the Perl interpreter within Python!!! I now believe I can utilize
    python as the main platform to develop the project upon !!


    Thanks,

    David




    -----Original Message-----
    From: D'Arcy J.M. Cain [mailto:darcy@dr uid.net]
    Sent: Monday, September 29, 2008 1:32 PM
    To: Blubaugh, David A.
    Cc: python-list@python.org
    Subject: Re: PYTHON WORKING WITH PERL ??

    On Mon, 29 Sep 2008 13:16:14 -0400
    "Blubaugh, David A." <dblubaugh@belc an.comwrote:
    I was wondering if it was possible to have a situation where a
    programming project would utilized BOTH python and perl? Such as
    utilizing python for internet programming and then utilize perl for
    text processing and systems programming? Is this even feasible???
    I don't see why not but I also question if it is a good idea. Once you
    have all your objects and low level methods written in Python it just
    makes sense to re-use them rather than trying to duplicate the
    functionality in another language.

    Of course, sometimes we don't have control over our entire environment
    so yes, you can mix them if you have to.

    --
    D'Arcy J.M. Cain <darcy@druid.ne t | Democracy is three wolves
    http://www.druid.net/darcy/ | and a sheep voting on
    +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

    This e-mail transmission contains information that is confidential and may be
    privileged. It is intended only for the addressee(s) named above. If you receive
    this e-mail in error, please do not read, copy or disseminate it in any manner.
    If you are not the intended recipient, any disclosure, copying, distribution or
    use of the contents of this information is prohibited. Please reply to the
    message immediately by informing the sender that the message was misdirected.
    After replying, please erase it from your computer system. Your assistance in
    correcting this error is appreciated.

  • Sean DiZazzo

    #2
    Re: PYTHON WORKING WITH PERL ??

    On Sep 29, 12:44 pm, "Blubaugh, David A." <dbluba...@belc an.com>
    wrote:
    Sir,
    >
    You are absolutely correct.  I was praying to G_d I did not have to
    slaughter my project's source code in this manner.  However, like life
    itself, I was given legacy source code (i.e. someone else errors to fix)
    in Perl.  However, I have just found out that there is a way to import
    the Perl interpreter within Python!!!  I now believe I can utilize
    python as the main platform to develop the project upon !!  
    >
    Thanks,
    >
    David
    >
    -----Original Message-----
    From: D'Arcy J.M. Cain [mailto:da...@dr uid.net]
    Sent: Monday, September 29, 2008 1:32 PM
    To: Blubaugh, David A.
    >
    Cc: python-l...@python.org
    Subject: Re: PYTHON WORKING WITH PERL ??
    >
    On Mon, 29 Sep 2008 13:16:14 -0400
    "Blubaugh, David A." <dbluba...@belc an.comwrote:
    I was wondering if it was possible to have a situation where a
    programming project would utilized BOTH python and perl?  Such as
    utilizing python for internet programming and then utilize perl for
    text processing and systems programming?  Is this even feasible???
    >
    I don't see why not but I also question if it is a good idea.  Once you
    have all your objects and low level methods written in Python it just
    makes sense to re-use them rather than trying to duplicate the
    functionality in another language.
    >
    Of course, sometimes we don't have control over our entire environment
    so yes, you can mix them if you have to.
    >

    Rewrite everything in python. Save yourself now...while you still
    can.

    ~Sean

    Comment

    • Pat

      #3
      Re: PYTHON WORKING WITH PERL ??

      Sean DiZazzo wrote:
      On Sep 29, 12:44 pm, "Blubaugh, David A." <dbluba...@belc an.com>
      wrote:
      >Sir,
      >>
      >You are absolutely correct. I was praying to G_d I did not have to
      >slaughter my project's source code in this manner. However, like life
      >itself, I was given legacy source code (i.e. someone else errors to fix)
      >in Perl. However, I have just found out that there is a way to import
      >the Perl interpreter within Python!!! I now believe I can utilize
      >python as the main platform to develop the project upon !!
      >>
      >Thanks,
      >>
      >David
      >>
      >-----Original Message-----
      >From: D'Arcy J.M. Cain [mailto:da...@dr uid.net]
      >Sent: Monday, September 29, 2008 1:32 PM
      >To: Blubaugh, David A.
      >>
      >Cc: python-l...@python.org
      >Subject: Re: PYTHON WORKING WITH PERL ??
      >>
      >On Mon, 29 Sep 2008 13:16:14 -0400
      >"Blubaugh, David A." <dbluba...@belc an.comwrote:
      >>I was wondering if it was possible to have a situation where a
      >>programming project would utilized BOTH python and perl? Such as
      >>utilizing python for internet programming and then utilize perl for
      >>text processing and systems programming? Is this even feasible???
      >I don't see why not but I also question if it is a good idea. Once you
      >have all your objects and low level methods written in Python it just
      >makes sense to re-use them rather than trying to duplicate the
      >functionalit y in another language.
      >>
      >Of course, sometimes we don't have control over our entire environment
      >so yes, you can mix them if you have to.
      >>
      >
      >
      Rewrite everything in python. Save yourself now...while you still
      can.
      >
      ~Sean
      Trust me. Sean is absolutely correct. I'm currently in the process of
      converting a large Perl project to Python (and learning Python at the
      same time) and the improvement in code is incredible. After you learn
      Python, you'll come to despise Perl.

      Comment

      • J Kenneth King

        #4
        Re: PYTHON WORKING WITH PERL ??

        Pat <Pat@junk.netwr ites:
        Sean DiZazzo wrote:
        >On Sep 29, 12:44 pm, "Blubaugh, David A." <dbluba...@belc an.com>
        >wrote:
        >>Sir,
        >>>
        >>You are absolutely correct. I was praying to G_d I did not have to
        >>slaughter my project's source code in this manner. However, like life
        >>itself, I was given legacy source code (i.e. someone else errors to fix)
        >>in Perl. However, I have just found out that there is a way to import
        >>the Perl interpreter within Python!!! I now believe I can utilize
        >>python as the main platform to develop the project upon !!
        >>>
        >>Thanks,
        >>>
        >>David
        >>>
        >>-----Original Message-----
        >>From: D'Arcy J.M. Cain [mailto:da...@dr uid.net]
        >>Sent: Monday, September 29, 2008 1:32 PM
        >>To: Blubaugh, David A.
        >>>
        >>Cc: python-l...@python.org
        >>Subject: Re: PYTHON WORKING WITH PERL ??
        >>>
        >>On Mon, 29 Sep 2008 13:16:14 -0400
        >>"Blubaugh, David A." <dbluba...@belc an.comwrote:
        >>>I was wondering if it was possible to have a situation where a
        >>>programmin g project would utilized BOTH python and perl? Such as
        >>>utilizing python for internet programming and then utilize perl for
        >>>text processing and systems programming? Is this even feasible???
        >>I don't see why not but I also question if it is a good idea. Once you
        >>have all your objects and low level methods written in Python it just
        >>makes sense to re-use them rather than trying to duplicate the
        >>functionali ty in another language.
        >>>
        >>Of course, sometimes we don't have control over our entire environment
        >>so yes, you can mix them if you have to.
        >>>
        >>
        >>
        >Rewrite everything in python. Save yourself now...while you still
        >can.
        >>
        >~Sean
        >
        Trust me. Sean is absolutely correct. I'm currently in the process of
        converting a large Perl project to Python (and learning Python at the
        same time) and the improvement in code is incredible. After you learn
        Python, you'll come to despise Perl.
        Depends on the person -- I still love Perl, but program in Python
        every day at work.

        Python is great, but don't be mistaken: it's not the one language to
        rule them all. No language is (except maybe Lisp).

        But yay for converting a project to python. :)

        Comment

        • Diez B. Roggisch

          #5
          Re: PYTHON WORKING WITH PERL ??

          Trust me. Sean is absolutely correct. I'm currently in the process of
          converting a large Perl project to Python (and learning Python at the
          same time) and the improvement in code is incredible. After you learn
          Python, you'll come to despise Perl.
          +1 QOTW

          Diez

          Comment

          • Joshua Kugler

            #6
            Re: PYTHON WORKING WITH PERL ??

            Pat wrote:
            >Rewrite everything in python. Save yourself now...while you still
            >can.
            >>
            >~Sean
            >
            Trust me. Sean is absolutely correct. I'm currently in the process of
            converting a large Perl project to Python (and learning Python at the
            same time) and the improvement in code is incredible. After you learn
            Python, you'll come to despise Perl.
            I'm not a Python fan-boy, but I'm going to have to agree with Sean too. I
            had been using Perl on-and-off for some 10 years, when I finally had to
            write a 500-ish line script in Perl for some data processing. It got messy
            in a hurry. Is this a hash? Is it a reference to a hash? Is it a reference
            to a hash of array references? Gaaah! I rewrote it in Python, and it was
            so much easier to keep all my data structures straight.

            j

            Comment

            • J Kenneth King

              #7
              Re: PYTHON WORKING WITH PERL ??

              Joshua Kugler <joshua@joshuak ugler.comwrites :
              Pat wrote:
              >>Rewrite everything in python. Save yourself now...while you still
              >>can.
              >>>
              >>~Sean
              >>
              >Trust me. Sean is absolutely correct. I'm currently in the process of
              >converting a large Perl project to Python (and learning Python at the
              >same time) and the improvement in code is incredible. After you learn
              >Python, you'll come to despise Perl.
              >
              I'm not a Python fan-boy, but I'm going to have to agree with Sean too. I
              had been using Perl on-and-off for some 10 years, when I finally had to
              write a 500-ish line script in Perl for some data processing. It got messy
              in a hurry. Is this a hash? Is it a reference to a hash? Is it a reference
              to a hash of array references? Gaaah! I rewrote it in Python, and it was
              so much easier to keep all my data structures straight.
              >
              j
              Perl just gives you a lot of rope.

              You can do a lot of neat things with rope. ;)

              Comment

              • Nicola Larosa (tekNico)

                #8
                Re: PYTHON WORKING WITH PERL ??

                Pat <P...@junk.netw rote:
                After you learn Python, you'll come to despise Perl.
                Some of us came to despise Perl *before* learning Python (third to
                last paragraph):

                A journey through languages


                --
                Nicola Larosa - http://www.tekNico.net/

                Look, it's a "connect-the-dots" game... when all the dots are
                connected, the word *Y.I.K.E.S.* appears. - Jon Husband, June 2008

                Comment

                • Craig Allen

                  #9
                  Re: PYTHON WORKING WITH PERL ??

                  article:http://www.linuxjournal.com/article/3882

                  interesting read, thanks

                  Comment

                  • Craig Allen

                    #10
                    Re: PYTHON WORKING WITH PERL ??

                    article:http://www.linuxjournal.com/article/3882

                    even if it is by Eric Raymond

                    Comment

                    Working...