Issue #711 - 2025-03-10 - Obfuscating Perl

latest | archive | edited by Gabor Szabo
This edition was made possible by the supporters of our cause.
Don't miss the next issue!

Hi there!

As you might know I used to teach Perl and helped companies using Perl. Unfortunately, in the last couple of years only a few companies asked for my help with Perl and in most cases in areas I am not that familiar with. So I referred them to other, well known consultants.

Instead of Perl most of my clients are asking for help with Python and Rust. Especially because of the latter I felt the need to know more about C and C++. At least to the level where I understand the questions C/C++ programmers might have about Rust. So I dusted off my copy of "The C programming language" and started to learn again.

This time it will be especially fun as my son - who has been a professional programmer for more than 6 years now - decided to get a degree in Computer Sciences so he is also taking classes about C.

The way I learn is by trying to implement things and trying to explain them. So I am going to post about my new journey with C on the C Maven web site. You have been warned.

In other news we are celebrating Purim this week, when everyone dresses up as someone else. I wonder if I should dress up as a C programmer?

Enjoy your week!

Gabor Szabo


Articles

Once more unto the Wide character (U+XXXX) in substitution (s///)

by Aristotle Pagaltzis (ARISTOTLE)

As brian d foy puts it: Fake loading locale to get around a wide character warning


Discussion

Seeking Advice on Improving My Code

Probably the best way to learn any programming language is to try writing some code and then get feedback from more experienced programmers.

Perl import modules for all classes in file

Explicit is better than implicit? Automatic imports can cause hard-to-debug problems?


Perl

The Weekly Challenge

The Weekly Challenge by Mohammad Sajid Anwar will help you step out of your comfort-zone. You can even win prize money of $50 by participating in the weekly challenge. We pick one champion at the end of the month from among all of the contributors during the month, thanks to the sponsor Lance Wicks.

The Weekly Challenge - 312

by Mohammad Sajid Anwar (MANWAR)

Welcome to a new week with a couple of fun tasks "Minimum Time" and "Balls and Boxes". If you are new to the weekly challenge then why not join us and have fun every week. For more information, please read the FAQ.

RECAP - The Weekly Challenge - 311

by Mohammad Sajid Anwar (MANWAR)

Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Upper Lower" and "Group Digit Sum" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.

Lower the Upper Sums!

by Adam Russell

Use of pack() and unpack(), very brave attempt. I still find it hard to get my head around. Thanks for making it look so easy.

TWC311

by Ali Moradi

My all time favourite, never miss the opportunity to surprise me. I love the clean and easy to read solution. Highly recommended.

Upper Group

by Arne Sommer

Don't you love the method chaining of Raku? It allows you to create cute little one-liner. You must checkout to see it yourself.

Perl Weekly Challenge: Week 311

by Jaldhar H. Vyas

A very special regex one-liner in Perl is my personal favourite. With it, we have detailed breakdown analysis and that is very handy. Great work, keep it up.

Flip Groups

by Jorg Sommrey

Once again, we have a very special contributions. Regex with the power of Unicode properties can be deadly combination. Plenty to learn every week, well done and keep it up.

Switch Case?

by Kaushik Tunuguntla

Welcome back after a long break and what a comeback, I must admit. I am really impressed by story telling skill. Ofcourse the contribution is pretty too. Keep it up great work.

two lines

by Luca Ferrari

Unlike most weeks, this time we just have Raku one-liner magics for both task. Incredible, powerful Raku magics. Keep sharing knowledge with us.

Perl Weekly Challenge 311

by W Luis Mochan

Master of Perl one-liner is never going to miss the train and show the power of Perl regex. Well done and keep it up.

Up and Down and Round and Round

by Matthias Muth

Plenty of Perl's regex magic every where. You really don't want to miss it. Great work, well done.

gROUP dIGIT sUM

by Peter Campbell Smith

Our latest champion back with yet another gem of a solution. Don't forget to try DIY tool, impressive work. Keep it up.

The Weekly Challenge #311

by Robbie Hatley

Thanks for reminding us about the y operator as normally we see the use of tr// for such case. Keep sharing knowledge.

Lower the Sum

by Roger Bell West (FIREDRAKE)

I was hoping Postscript to make a comeback in the post this week and I got my wish fulfilled. Thank you for your contribution as always.


Weekly collections

Events

Paris.pm monthly meeting

Paris, France

The Perl and Raku Conference 2025

Greenville, South Carolina, USA



You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter RSS Feed of the Perl Weekly. Updated once a week