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:
    http://FastBuilder.eQ19.com
    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:
    http://www.daweidesigns.com
    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,375
    Likes Received:
    388
    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,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Perl it is!
     
  8. Krolik

    Krolik New Member

    Joined:
    Feb 16, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://home.elka.pw.edu.pl/~pkolaczk/
    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,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Well, it differs from programmer to programmer, OO Perl exists and I find Python strange. Both have their own merits and demerits.
     
  10. JohnAdams

    JohnAdams Member

    Joined:
    Oct 15, 2016
    Messages:
    46
    Likes Received:
    2
    Trophy Points:
    8
    Gender:
    Male
    Perl is better than python. In Perl, the programmer's can do things in more than one way but Python restricts the programmers in what they can do. Perl has a whole set of shortcuts for making it easy to write the code and it is significantly faster than Python.
     
  11. Louis Zorbas

    Louis Zorbas New Member

    Joined:
    Aug 26, 2016
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Python is best language you should learn because if you will learn it you can make your career as a data scientist as well.
     
  12. meenal deshpande

    meenal deshpande New Member

    Joined:
    Oct 11, 2018
    Messages:
    20
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Female
    As my opinion python is more better than perl because perl is mainly used for CGI scripting whereas python is web scripting which is more popular and in demand.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice