49

hello,

I got into learning Perl because some people on IRC said so. at first I wasn't interested in Perl because I already know Python and Python can almost do anything Perl can. I still gave it a try to kinda have some experience learning new language. I am on chapter 3 right now and would make another post about my progress.

https://blob.perl.org/books/beginning-perl/3145_Chap03.pdf

top 17 comments
sorted by: hot top controversial new old
[-] bizdelnick@lemmy.ml 24 points 4 months ago

A bit too late. 20 years ago this would be great. (I started 12 years ago, used it for couple of hobby projects.)

[-] thingsiplay@beehaw.org 25 points 4 months ago

For the language itself, maybe. But never discourage people from learning something new. He seems to be excited and has motivation. There are also lot of legacy code, which would never get ported or maintained if nobody learns the language anymore, only a few old people at that point (look what happens to COBOL).

[-] 404@lemmy.zip 5 points 4 months ago

Yeah, COBOL schools and boot camps have started to pop up

[-] snaggen@programming.dev 15 points 4 months ago* (last edited 4 months ago)

I learend it in the 90s, and was working on a large Perl codebase 2005 and a couple of years forward. And 20 years, it still started to feel dated, and 15 years ago it was just so out dated it hurt. So, starting to learn Perl 20 years ago would not have been great :) However, the things making Perl horrible, is pretty much threre in Python also with the addition of significant whitespace... so technically, going from Python to Perl might actually be a step in the right direction.... Now, if you excuse me, I will hide behinde this huge rock for a while to let the incoming projectiles settle.

[-] fulg@lemmy.world 18 points 4 months ago

some people on IRC

Well there’s your problem! (just kidding)

Honestly though I don’t know why you would pick Perl unless you want to learn an obscure language that is both painful to read and write. May $deity have mercy on your soul.

[-] solrize@lemmy.world 14 points 4 months ago* (last edited 4 months ago)

I won't say "better" but Perl 6 is ... interesting. It's not clear what version you're using.

I suggest Haskell as your next language instead of Perl, since it will change how you think. https://learnyouahaskell.com is a good place to start.

[-] Faresh@lemmy.ml 18 points 4 months ago* (last edited 4 months ago)

When people say perl, they normally mean Perl 5. Perl 6 is now called Raku and is considered a different language.

[-] msage@programming.dev 1 points 4 months ago

It's not that far from the tree

[-] exu@feditown.com 8 points 4 months ago* (last edited 4 months ago)

I've been brainwashed into finding Elixir interesting due to how it handles parallelism and how good it's supposed to be for live debugging. (According to ~3 talks I found on youtube)

Edit: Syntax error

[-] solrize@lemmy.world 1 points 4 months ago* (last edited 4 months ago)

Also a good choice. I've never used Elixir but have used Erlang. Elixir is just Erlang with different surface syntax, pretty much. https://learnyousomeerlang.com is a good way to start with Erlang.

[-] MalReynolds@slrpnk.net 9 points 4 months ago

Ah, write only code ;) I was an enjoyer pre python.

[-] ericjmorey@programming.dev 8 points 4 months ago

I'm fascinated by Raku myself.

[-] spacedogroy@feddit.uk 8 points 4 months ago* (last edited 4 months ago)

I worked with Perl for years, and I don't recommend it for a beginner. There are just too many idiosyncrasies that belong specifically to the language that you'd be better off with Python for learning the basics.

I'm also not really sold on that book, which from the code samples looks really old. I'd recommend two books: Modern Perl and Perl Best Practices.

Edit: I'd also recommend working in Go but potentially the way i/o intersects with interfaces makes it a bit more challenging.

[-] thingsiplay@beehaw.org 4 points 4 months ago

I was about to start learning Perl in a proper way, but always decided against it. I just can't find a good reason for myself to write Perl code. Unless you want to read or edit others Perl code, what is the reason to learn it? GNU+Bash and Python are often enough for me.

So why learning and using Perl in modern age and day as a newcomer to the language? Look, I'm not negative here, just asking honest question. Because I am actually searching for good reasons to learn Perl.

[-] snaggen@programming.dev 4 points 4 months ago

Well, Perl is great for small scripts that works on large texts, that you process with regex. I still use Perl from time to time, for that kind of scripts. Also commandline, instead of awk/sed...

[-] CIAvash@programming.dev 2 points 4 months ago

If you want/like/enjoy something, do it, don't listen to others. It's also OK to learn something but never use it, either for the joy of learning or learning new things and new ways of looking at things.

Perl was my first favorite programming language, I really liked it. my brain could connect with it easily(same thing wasn't true for other PLs). It even helped me understand other programming languages better.

My current favorite language is Raku.

[-] netizen@programming.dev 1 points 4 months ago

If you want/like/enjoy something, do it, don’t listen to others. It’s also OK to learn something but never use it, either for the joy of learning or learning new things and new ways of looking at things.

Perl was my first favorite programming language, I really liked it. my brain could connect with it easily(same thing wasn’t true for other PLs). It even helped me understand other programming languages better.

Pretty much this ^ Besides that, I still miss Perl, I loved it!

My current favorite language is Raku.

I was once also looking while Perl6 was evolving, and somehow liked it, but there was something keeping me out. There were no plans to allow me to use Perl6 the same way I (and everyone) uses Perl5: $ binaryinterpreter script.pl

this post was submitted on 02 Jul 2024
49 points (100.0% liked)

Programming

17432 readers
204 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS