The Truth of Python and Perl – Features, Pros and Cons Discussed

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

16 Responses

  1. Andy Mender says:

    Although this article is very old, it still pops up in Google searches on the “Perl vs Python” conundrum. For the love of God, please don’t EVER treat this article seriously, folks! It’s not only badly written (that English…), but also full of rubbish. The author has obviously no idea about either of the languages and should do some serious research before writing. Frankly, an utter disgrace to tecmint.com :|.

    • Ravi Saive says:

      @Andy,

      Thanks for your opinion, and we do respect it, yes I do agree that the article is outdated and haven’t been updated since long time, but now we are taking it on high priority and will soon update this article with latest stuff about Python vs Perl..

      • Andy Mender says:

        I am very sorry for throwing a tantrum previously, I had a tough day then :/. To be a bit more specific, the problem with this article is not merely that it’s outdated, but that many of the listed points are simply not true and have been mentioned by others already in 2014. For instance, both Perl and Python have an Interpreter mode. Then, you cannot say that Perl is slower, because it’s a scripting language. Python is also a scripting language and suffers similarly. That’s why I wrote one should do proper research before writing an article entitled “The Truth of Python and Perl”.

  2. Marco Aurélio says:

    Wait, Perl is so far portable, because it is ANSI C and is available for a wide range of machines and OS. Someones say that this is the most Portable Scripting Language because it is the oldest Scripting Language…

    Python -> RAD/Team Work
    Perl -> Critical Systems/Sysadmin

    But you are right, Perl has ugly Libraries on CPAN, on other Hand, Python has so far useful Libraries.

    • jjolla says:

      what precisely is meant by “ugly libraries” ?

      imho, CPAN is the silver bullet – Perl programs don’t need to be large at all .. because just about everything you need done has already been published on CPAN. Your program tends to be simple glue more times than not.

      Python has awesome math/scientific libraries, and in this space it outshines Perl.

  3. Marco Aurélio says:

    Yes, Perl has a poor (Function) Argument Handling, because it has no true Real Subroutine Signatures, but it change in Perl 6. And yes, Perl isn’t suitable for a team work, seems so far Hardcore put 20 Perl programmers to work without a good standard coding style, even ‘use strict’ try it… So, in the OO, the MOP try to resolve it.

  4. DataMunger says:

    Apparently the author of this article has never worked with Perl.
    Every CON point mentioned is wrong.

    I suggest he read the following article.

    http://www.drdobbs.com/open-source/why-i-use-perland-will-continue-to-do-so/240148364

  5. Ron S says:

    I disagree that the two items you list as cons for python are actually cons. I think they are big pros.

  6. pmu says:

    One more article where a so called programmer who do not have sufficient knowledge of a language tend to give some really flimsy reasons to run it down. “Interpretor” is how you spell it?? Really??

    Perl may not be as popular as Python, but it’s a great language.

    A LOT of big organizations use Perl to this date and will continue to do so.

  7. Tony Cooper says:

    Another so called expert talking nonsense! Some points:

    “Many ways to achieve same result, means unreadable code, which in turn means untidy code” No this is down to lazy/incompetent programming. Perl is much more forgiving as a language so you can get away with more. More choice means less constraint.

    “As scripting, it is slower for a lot of tasks.” This is Python vs Perl so this point is irrelevant!

    “Object Oriented not implemented well”. It’s not as nice as Python but core OO in Perl works perfectly well and is still easy to use. There are also good frameworks that help streamline things,

    “Creates problem when the codes are larger say more than 200 Lines.” Nonsense. I have written 20K programs without issue. In fact this is a weakness of Python, which does not support data privacy, whereas Perl does.

    “Argument Handling is poor” Well he had to get something right!

    “Not Portable” Nonsense. Just as portable, if not more so than Python. Python does have issues with being less mature as a language and so often requiring one to upgrade Python in order to get a script working.
    “No Interpretor Shell” Nonsense, perl -d – Ctrl-D.
    “Ugly Libraries” Nonsense. Most have OO interfaces these days.

    If you want a more informed comparison look here at my blog:

    http://coosoft.wordpress.com/2013/02/24/the-perl-vs-python-debate/

    Tony.

  8. Nawaz says:

    Tecmint folks,

    Could someone please give us a headstart into learning perl and python scripting languages. I am a DBA and i do a lot of automation of Oracle DBA tasks using shell scripts. But I read a couple of years ago that some 100-200 lines of shell script code is just a few lines of code in perl for automation. I did set out to learn perl from the basics but could not follow through and apply it in real world (Oracle DBA world). I would appreciate if someone could post articles on the basics/intermediates of perl and python so folks like me can improvise from there.

    ~

    Nawaz

  9. Konstantin says:

    I fully support you, Sam. Perl is very fast, maybe fastest in scripting languages. But for refactoring Perl is not so good as Python.

  10. Sam says:

    This is a horrible article, the author has no idea about perl. Let me go through the supposed ‘cons’:

    Many ways to achieve same result, means unreadable code, which in turn means untidy code — Good I say, this promotes creativity

    As scripting, it is slower for a lot of tasks. — What?

    Object Oriented not implemented well — OO in perl is fine, it has 10+ OO frameworks

    Creates problem when the codes are larger say more than 200 Lines. — Flat out lie, I know plenty of perl programs that are 10k+ lines

    Argument Handling is poor — how so?
    Not Portable — How? where does python run that perl can’t? Perl interpreter is less than 50kb. Python interpreter is 1+mb. Clearly python could never run on an embedded system with less than 1mb of ram…

    No Interpretor Shell — more lies, just type ‘perl -d’
    Ugly Libraries — beauty is in the eye of the beholder…

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?