Perl Programming in 2024 | Still a Useful Language?

  Рет қаралды 3,244

StarCoding

StarCoding

5 ай бұрын

Hello all, welcome to another Programming video, today we are talking about PERL!
Holy smokes I bet you haven't seen a perl video in your feed lately, Stick around and learn about what this language can do for you.
Follow me on other platforms:
/ jakemellichamp
blog.projectstar.io

Пікірлер: 28
@jasonchesshir9551
@jasonchesshir9551 4 ай бұрын
Everyone is sleeping on Perl. Code quality is dependent on the writer, not the language. Glad to see some Perl content in 2024.
@MeriaDuck
@MeriaDuck 16 күн бұрын
One of the problems I have with perl is the number of things that are implicitly happening. And accidentally using a list in scalar context doesn't break, it implies you want the length. So a function created for numbers would do _something_ when receiving a list, and vice versa. That something would hardly ever be what you wanted. It was one of the firs languages that had a central repository of libraries.
@felipevaldes7679
@felipevaldes7679 14 күн бұрын
This video discusses the relevance of the Perl programming language in 2024. The key points are: Perl is a legacy language that was ahead of its time when it was created in 1987, offering better syntax and functionality than bash scripting. While Perl has no strict types, it has three semi-types: scalars, arrays, and hashes, making it a mix between an object-oriented and scripting language. Python is considered the modern version of Perl, with similar features like dynamic typing and scripting capabilities. Perl's strength lies in text processing, regex operations, and acting as a glue between external applications, parsing their output, and performing automated tasks. The video demonstrates how Perl can be used to call system commands like dmesg and parse their output using regex expressions. Perl is compatible with C libraries and can load and run C code within Perl scripts. While Perl has an active community and package management system (CPAN), some packages are outdated and may require modifications. The video suggests that Perl's primary use case in 2024 is for text processing, parsing command outputs, and automating tasks involving external applications, leveraging its regex capabilities and compatibility with C libraries.
@groff8657
@groff8657 2 ай бұрын
If I remember correctly Perl and it's numerous published books defined the standard for regular expressions. It's text processing capabilities is so legendary that it literally set the tone for writing Regex.
@chmod0644
@chmod0644 Ай бұрын
Perl is dope. Check out perl format directives, a built-in DSL that's kind of like a templating language.
@official_starcoding
@official_starcoding Ай бұрын
Ooo I have never heard of this - wow looking at the man page now, very nice for console/file/log output!
@carmacarmody
@carmacarmody 3 ай бұрын
Perl is the absolute best language to do things quickly if you know what you are doing. I will use it over python any day of the week for quick simple script stuff.
@CrankyStalker
@CrankyStalker 2 ай бұрын
perl programming language offical website is got skipped by me , check my channel i post the video explain
@muyvin98
@muyvin98 2 ай бұрын
perl is very practical, people like to bash on other languages without fully trying it.
@user-pe7gf9rv4m
@user-pe7gf9rv4m Ай бұрын
What about Raku?
@benhuangbmj
@benhuangbmj 3 ай бұрын
How often do you use Perl? For job or for side projects?
@jpcarballo
@jpcarballo 3 ай бұрын
In my case, quite a lot. Once your shell scripts get clunky from using awk and grep, perl comes to the rescue. Two other use cases come to mind. Use perl to handle a lot of text data and format the output using SQL statements. And you can parse the output from a database and save it to say a google sheet. You now then have it dynamically update the page like a counter or a status and then use google sheets to change the color of each cell from green to yellow to red depending on the output.
@benhuangbmj
@benhuangbmj 3 ай бұрын
@@jpcarballo Awesome! My recent discovery about Perl is exactly in shell scripts. I was trying to use sed to do some regular expression stuffs, only to find that sed doesn't support look ahead/behind, and I was told (by ChatGPT) that Perl would be perfect for this application. On the other hand, although I don't have any hands-on experience with Perl, it's always on my radar, because one open source software I have been using in my day job is written in Perl (WebWork, an educational software).
@wilsonfreitas8418
@wilsonfreitas8418 4 ай бұрын
Perl is useful if you want to make sure nobody can read your code. Not even yourself.
@PurpleYoshiEgg
@PurpleYoshiEgg 4 ай бұрын
I don't get this. Perl isn't actually too hard to read if you put an ounce of thought into making the code readable.
@jpcarballo
@jpcarballo 3 ай бұрын
@@PurpleYoshiEgg What he probably means is that it's easy to make Perl unreadable if you lean too much on the syntax shortcuts that are useful for one liners and quick system calls. No one uses them in general programming. Read any module in CPAN and it'll be filled with very readable code.
@muyvin98
@muyvin98 2 ай бұрын
if you want to code perl professionally, did you ever heard of coding guidelines or best practices.
@CHURCHISAWESUM
@CHURCHISAWESUM 2 ай бұрын
@@muyvin98 if you ain't rippin off one liners like a madman why even use perl
@muyvin98
@muyvin98 2 ай бұрын
@@CHURCHISAWESUM I'm saying there are ways to code in perl . No one is forcing you to use perl. Use any language you like
@eadwacer524
@eadwacer524 4 ай бұрын
Why the "my" on variables at the highest scope?
@CheesyAceGameplay
@CheesyAceGameplay 4 ай бұрын
my = current scope variable our = global variable Yeah. Syntax. Kinda like the “let” keyword in JavaScript.
@eadwacer524
@eadwacer524 4 ай бұрын
@@CheesyAceGameplay Well in JS you can also create a variable without "let" or "var" by making a global, which was the original way to define a variable before "var" was added. //JS: a=1 var b let c #In Perl there I think there are 7 ways of defining a variable $a; b; local $c; my $d; use constant E=>2; our $f; state $g; As far as I understand about Perl, the "my" doesn't have any meaning when used at the highest scope, if you were going to create a package variable perhaps "our" would fit though.
@adrian7583
@adrian7583 4 ай бұрын
This also allows you to safely reuse a program as a function in another program.
Wordpress in 2024?
10:19
Stefan Mischook
Рет қаралды 20 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 12 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 1,3 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 43 МЛН
ARRAYLIST VS LINKEDLIST
21:20
Core Dumped
Рет қаралды 50 М.
Interview with Artificialist Intelligence (A.I.) Founder 2024
9:59
Programmers are also human
Рет қаралды 56 М.
"The Economics of Programming Languages" by Evan Czaplicki (Strange Loop 2023)
43:58
Strange Loop Conference
Рет қаралды 119 М.
Why LISP Is The Language of Legends
9:05
Sammy Engineering
Рет қаралды 31 М.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Рет қаралды 148 М.
Perl и Ruby все? Краткая история бэкенда
12:03
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 283 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 12 МЛН