1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python Or Perl

Discussion in 'Python' started by AliasXNeo, Dec 23, 2006.

  1. AliasXNeo

    AliasXNeo New Member

    Joined:
    Dec 23, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hey all.

    Not sure if this is the right section for this, but it seems convient. On to my point, I've heard a lot about both Python and Perl. I want to learn one of them but I'm afraid books are not cutting it plus I always prefer user input over articles anyways (more variety of information). I've been programming PHP for almost a year now, along with Java and Ruby, I want to add another language onto my growing toolbelt (So I can fly through college).

    So, can someone give me some reasons why one might be better than the other, or what field one is good in and the other isn't? I originally started learning python, but I couldn't find any good books, most of them either didn't cover the basics or you stayed in the interpreter window the whole time and never actually wrote any full scripts (which is the way I like to learn). As for Perl I was also considering because a very good friend of mine said he absolutely enjoys the language and really suggests that I learn it. So I'm kind of stuck here and need some more input. Thanks.

    Cheers,
    - Josh
     
  2. montyauto

    montyauto New Member

    Joined:
    Dec 31, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    In term of language Perl is most powerfull especially if we need so much dealing with server side.
    I think php has accomodate almost all aspects in Perl, but I'm not sure about Phyton.
     
  3. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    Perl was (is) a great language, but it's becoming a tad grizzled and doesn't have the close-to-the-machine abilities that make its age immaterial. It was designed to produce reports, but Wall did a great job of migrating it to more serious applications.

    All that said, in my opinion, Python will be superior for developing your problem-solving abilities. It isn't exactly calculator versus slide rule, but technology marches on.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    My vote goes with the PERL
     
  5. ever_thus

    ever_thus New Member

    Joined:
    Jan 3, 2007
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    0
    I'm not really qualified on this subject because my experience with Python is liminted, but my opinion is like this.

    Perl is a language where you Can Do It. Its creators did a pretty good job of "making easy things easy and difficult things possible" (their motto). If you're familiar with programming constructs you find Perl a language where doing things is very intuitive.

    On the other hand, this comes at a price. Perl is a language with a very confusing structure. If you want to create complex, structured apps, Perl's lack of clear structure will hinder you.

    My personal beef with Perl (as a Windows man) is its strong UNIX bias. Again, this makes many things easy, since UNIX has lots of cool functionality. But if you don't like to do things the UNIX way you have to resort to contortions.

    In my experience at least, Python does not suffer from these issues. But as a result it does not have the intuitiveness and ease that Perl has. However Python does have the powerful high-level functionality of Perl.
     
  6. Lostinthought

    Lostinthought New Member

    Joined:
    Feb 28, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    I would say Perl
     
  7. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Perl it is!
     
  8. Krolik

    Krolik New Member

    Joined:
    Feb 16, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    Python has much better OO. It is possible with Perl, but somehow very complicated and strange. If you are willing to write a large app - I would definitely suggest Python.
    And you have JPython which compiles directly to Java pseudocode which runs much faster.
     
  9. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Well, it differs from programmer to programmer, OO Perl exists and I find Python strange. Both have their own merits and demerits.
     

Share This Page