this post was submitted on 11 Jul 2024
21 points (86.2% liked)

Programming

17655 readers
253 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 [email protected]



founded 2 years ago
MODERATORS
 

Hello,

I started learning Perl some time ago I also made a IRC bot using it however it is a very simple and basic bot but it's something I made using Perl :D

I also stumble upon some language quircks of Perl it's has bash vibes where if you don't do things right way it punishes you. eg, when you forget to quote your parameter expansion and bash performs word spliting and you are confused what's wrong!

so now I learned I language which I can use to manipulate text :D

all 6 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 5 months ago (1 children)

Have you considered raku? I'm not super familiar with perl but I assumed raku is perl improved

[–] [email protected] 3 points 5 months ago (1 children)

I haven't tried raku TBH, I have only heard about it. Is the syntax is significantly different than Perl?

[–] AProfessional 3 points 5 months ago

Yes its a different language by the same creator.

[–] fulg 4 points 5 months ago

I remember your previous post, congrats on not giving up.

Whipping up a script to solve a very specific problem is super satisfying, but I found that anything you write quickly becomes a liability. Debugging Perl can be super difficult, especially when returning to something you wrote a while back.

Personally I grew tired of the punishment and left it all behind! If I need a quick script I’ll use Python instead, and if it doesn’t work I can use a real debugger to fix it.

In any case it’s always fun learning new things, I hope this experience ends up being useful to you in the future and you get to easily solve a problem that stumps everyone else involved.

Cheers!

[–] [email protected] 3 points 5 months ago

Perl is excellent for text manipulation! I use it time from time when I need to do more advanced text manipulation in bash. perl -ne ‘[code goes here]’ is good for making one liners in bash.