Perl vs. Python



In this episode of QuickBytes, your host Mark Lassoff explains the difference between the Perl and Python programming languages. The pros and cons of each language are demonstrated in the form of examples.

⭐️ Want to learn more from Framework Television: https://frameworktv.com

⭐️ Training for Coding Beginners– Get Your First Job in Development. 7 Day Free Trial: https://www.frameworktv.com/framework-membership

⭐️ How to Become a Web Developer: https://www.frameworktv.com/blog/how-to-become-a-web-developer

⭐️ How Long Does it Take to Learn To Code: https://www.frameworktv.com/blog/how-long-does-it-take-to-learn-to-code

⭐️ Can You Learn Coding on Your Own: https://www.frameworktv.com/blog/can-you-learn-coding-on-your-own

🔥 Framework Twitter: http://twitter.com/framework_tv

🔥 Don’t forget to Like this video and Subscribe: https://www.youtube.com/c/LearnToProgramDotTV/?sub_confirmation=1

🔥 HTML (Full Youtube Course): https://youtu.be/l19Ji_cHhFc

40 thoughts on “Perl vs. Python

  1. Python started out life as ABC and then was renamed by G Rostrum. Prefer Perl 6 to Perl 5 to Python. I admit that I have just started to learn Python. Where is the switch statement or the ability to iterate on a descending range?

  2. Not nice trying to programm in perl with python convention. Perl code with exact functionality will looks like.
    print "This is iteration $inRount and Roundn" while $i++ < 10;

  3. Thank you for the video, despite there are some problems which lower the value of this comparison a lot.

    The main problem is that he is comparing apples and oranges and so compares on a level that might only be used by beginners. Here some points which I don't like about this comparison:

    1. he is using a very old and insecure way of perl. no strict mode, no warnings. without these, Perl is very dangerous, and so advanced programmers agree to use both (some even suggest the use of the Module Modern::Perl)
    2. He seems to be much better in Python and only have limited knowledge about Perl: He said that he only had done some little projects with Perl. Perl is a very powerful and idiomatic and mega flexible language, but he only shows a kind of baby perl.
    3. Python isn't much newer than Perl, but that doesn't matter. Perl is (as well as Python) under rapid development. And although Perl5 was released in 1994, since then, many new features were added as well as many modules (see https://www.cpan.org/ )
    4. The video stops before telling something really interesting. It does a quick comparison of the syntax… ok, but not really about the languages and their possibilities and modules (which are often more important than the language itself).

    From my personal experience:
    I know people that tried Perl for some weeks but were not able to control the freedom and the context orientation. Then they switched over to Python which seems to try to enforce one style of programming and got more happy. It was a good decision for them.

    I like Perl a lot (not only as profession but also as a hobby) because it allows me to decide on which level I want to write my code and how to solve a problem => https://de.wiktionary.org/wiki/TIMTOWTDI

    I also like Perl because it allows one to to do a lot of actions that other programming languages don't offer. Some of them are very useful, some of them should better not be used (or at least not without a very very good reason e.g. Prototypes, Autoload, Source filters, manipulation of the symbol table, …).

    About the learning curve: one can learn Perl very quickly and get to a level where one can do a lot in 1-2 weeks. I guess that is the same with Python, but it is the same with almost every other other programming languages I know. At this level, it doesn't care yet much which language you use. But to really know Perl…. well, it takes years. I even learn something new about Perl now and then.

    Conclusion: Perl is by far the best programming language in world … for me. Others might think differently and may also be right 😉

    (btw: I have been earning my money with Perl as freelancer, teacher and author (ok, not too much money for this part) for 21 years by now, but don't know enough about Python to be able to really compare these two languages)

  4. for i in range(10): # we can call i whatever we want in range means as written then range(10) is 9 times because range(x) where x – 1 for result
    print(f"This is called the 'for loop ', repeated {i} times… Round and Round") # this is how I would've done it for small project.

    outcome:
    This is called the 'for loop ', repeated 0 times… Round and Round
    This is called the 'for loop ', repeated 1 times… Round and Round
    This is called the 'for loop ', repeated 2 times… Round and Round
    This is called the 'for loop ', repeated 3 times… Round and Round
    This is called the 'for loop ', repeated 4 times… Round and Round
    This is called the 'for loop ', repeated 5 times… Round and Round
    This is called the 'for loop ', repeated 6 times… Round and Round
    This is called the 'for loop ', repeated 7 times… Round and Round
    This is called the 'for loop ', repeated 8 times… Round and Round
    This is called the 'for loop ', repeated 9 times… Round and Round

  5. Great video, very explanatory. Only issue with it is that Python isn't that much younger, only about two years, but other than that this was a very helpful video.

  6. I can not think of a slower way to develop and test code than to use nano… manually saving … running with what ever program … reopen txt editor. LearnToProgram(WithMaximumCringe).tv

  7. In terms of capability of which each can achieve (Perl vs Python), what is it like for each? Just looking at this video I like how Perl looks a lot more like C. But I have also seen a handful of Python videos and the available Python libraries are so convenient I love them.

  8. You mean that python is less than perl because it needs indentation? While indenting is (I believe) the most necessary part in writing script because it looks cleaner and is better in comprehending?

    I'm somehow trying to teach myself python and I have zero experience with perl so this is just out of curiosity.

Leave a Reply

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