|
Perl Weekly
Issue #800 - 2026-11-23 - Perl v5.45.5
latest | archive | edited by Mohammad Sajid Anwar
|
|
Hi there,
Perl v5.45.5 yet another development release emphasises a lot on improvements in regex but what caught my attention was the bug fixes that solve the nesting lvalue substr buggy issues which originated from version 5.44.0. Please find detailed description in perldelta for the release.
Last Saturday, I got the opportunity to attend London Perl Workshop 2026. It was the most awaited event of the year. This time it was made even more special by the presence of Curtis Poe. He shared how he was AI skeptic at one point. As always the case, the talk was well received by all those presented there. Don't worry if you missed it, LPW organisers likely make the video public soon. Dave Cross couldn't attend the event last year but this time he made up by giving two talks. Infact one talk and one workshop. I enjoyed both, the workshop was fun to attend. There is plenty to learn by just listening to him. I thoroughly enjoyed it. Paul Evans had a fun talk. I had no clue about the topic, Armada, to be very honest with you but as the talk progressed, I got to learn about it. For me the bonus was section where he shared the latest changes in Perl. In fact, it wasn't planned initial as he confessed. He thought I was going to give talk but when I told him I am not given any talk this time. He quickly prepared the notes during the short break. At the end of the talk, I teased him with my ususal question, what the status of support for roles in experimental class feature?. His response was same as last year, nothing has changed unfortunately. I had a quick chat with hum at the end of the event when everyone was heading off to the pub and he explained his point of view with regards to the support of roles in class feature. The discussion was around my book, Design Patterns in Modern Perl and how I used Moo::Role in some of the design pattern examples. I promised to get back to him with my reasoning.
This year's event had another hightlight, Dave Cross's book launch of Data Munging with Perl (2nd edition). I was lucky to receive the signed copy of his book. Thank you, Dave. I will keep it as a prized possesion.
Last but not least, the annoucement of FOSDEM participation by Theo van Hoesel. I have never attended FOSDEM but this time I am thinking of not just attending but give a talk too. I will submit my proposal in the next day or two. We need more Perl talk. So if you are available then please do submit your proposal. For more information, please checkout this post by Theo van Hoesel.
I will share the detailed event report soon, so watch this space, till then enjoy rest of the newsletter.
Mohammad Sajid Anwar
|
|
|
Announcements
|
by Dave Cross (DAVECROSS)
Celebrating the quarter-century anniversary of the second edition of Data Munging with Perl, Dave examines how data formats and tools have evolved since 2001, from frail HTML::TokeParser to XML buzzwords to APIs, JSON/YAML and proper Unicode. Meanwhile, the essential UNIX filter model of linking small, targeted tools has not changed much, though it has been updated with modern Perl concepts like using v5.36 and lexical filehandles.
|
|
|
by Eric Herman
The newly development released Perl v5.45.5 emphasises a lot on improvements in regex based on trie and speed-ups in Aho-Corasick scanning including Boyer-Moore-Horspool skipping and case insensitive improvements in trie as well as cached lookups through isa and deterministic parser error messages. There are important bug fixes that solve the nesting lvalue substr buggy issues which originated from version 5.44.0, initialisation of ${^UTF8CACHE} in the new threads and flags in PL_sv_zero so that the serialisers can consider zero as a number rather than "0".
|
|
Articles
|
by rillbyteonion57
Using the Korean title as a concise Test::More fixture, rillbyteonion57 explains the problem of handling text in Perl when code points, grapheme clusters, and UTF-8 byte lengths are not distinguished. The article provides a simple pattern for catalog searching where both the insertion and searching operations use normalisation via NFC while keeping the original strings intact. Additionally, he points out the common mistake of confusing utf8 and :encoding(UTF-8) in file I/O operations.
|
|
by Rob Lauer
In his article, Rob examines the reason why .packlist files disappear every time a new version of CPAN is released when you set INSTALL_BASE. He reveals that the problem stems from ExtUtils::MakeMaker not properly understanding the SYSTEM SITEARCHEXP when it goes through the process of writing to INSTALLSITEARCH. He discusses the original debate about the status of packlists and details a recent PR concerning a fix to the matter of file pathfinding.
|
|
by Jean-Luc Martel
Jean-Luc Martel, has published a fun and entertaining article in which he discusses the features of Perl programming that can be very useful but may also make programming in this language rather difficult, such as: embedded regex code and stateful matching, coercion DWIM, tie, AUTOLOAD, typeglobs, and early cgi-bin days.
|
|
Podcast
|
A new episode of The Underbar podcast is out. Vienna.pm, the Perl Mongers group, gave the Perl Toolchain Summit 2026 its local organizers team. During the summit, we jumped at the opportunity to discuss with members Thomas Klausner and Michael Kröll. We talked about the history and future of the group, got on a side chat about the Toolchain Summit, had a long discussion about sponsoring (Michael is the CTO of Geizhals, a TPRF sponsor) and various ways to support Perl development, and finished with idle talk about future events in Vienna.
|
|
Grants
|
|
|
|
|
|
|
Slides
|
by Dave Cross (DAVECROSS)
Please find the presentation slides by Dave Cross if you missed the event.
|
|
|
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 Marc Perry.
|
by Mohammad Sajid Anwar (MANWAR)
Welcome to a new week with a couple of fun tasks "" and "". 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.
|
|
|
by Mohammad Sajid Anwar (MANWAR)
Enjoy a quick recap of last week's contributions by Team PWC dealing with the "" and "" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.
|
|
|
by Ali Moradi
This post shares clear and efficient Perl solutions for The Weekly Challenge #400, combining standard practices of strict/warnings and Test::More with remedial decisions. I find especially interesting the O(1) fast lookup of %valid hash alongside early exit on achieving the goal in the breadth-first search, as well as the innovative application of List::Util's reduce and max functions to conduct gap counting.
|
|
by Arne Sommer
In his article, Arne writes about The Weekly Challenge #400 in simple yet idiomatic Raku language while applying various concepts of Raku including the subset input validation, .comb, .repeated, and Bag. I find it quite appealing how he demonstrates the evolution of the idea from the initial working prototype to the improved version.
|
|
|
by Bob Lied
Bob presents an exciting tutorial for The Weekly Challenge #400 that uses smart list-processing techniques (grepping, sliding, and maximising) and a straightforward, simple breadth-first search algorithm. His modularisation of the problem is exemplary and the explicit trade-offs he discusses makes it an entertaining read.
|
|
|
by Jaldhar H. Vyas
For the Perl Weekly Challenge #400, Jaldhar demonstrates straightforward and comparable solutions in Raku and Perl, using regex filtering and adjacent-gap checks in Largest Interval problem and breadth-first search technique in Minimum Genetic Mutation. I particularly like the way idiomatic Raku code like Set and ∈ is converted into idiomatic Perl and the use of exit conditions and index pointer queue traversal.
|
|
by Jorg Sommrey
Foregoing brute-force iteration in favour of decimal transition points, block-skipping, and OEIS sequence ties, this post approaches The Weekly Challenge #400 from a mathematical, optimisation-focused angle. It also presents matching implementations in both Perl and J that help make the development of the algorithm particularly interesting to follow.
|
|
by Luboš Kolouch
In his article, Lubos gives clear and concise Perl and Python code along with complexity analysis of the methods used and input validation using Type::Params and type hints as well as using collections.deque for BFS queue operations. Presenting Perl and Python solutions with edge case checks has resulted in a write-up that is easy to understand.
|
|
by Matthias Muth
In his article, Matthias presents elegant and up-to-date solutions in Perl v5.36. He explains simply why trailing gaps close only when another valid number comes after it, and how he used bitwise string XOR technique via ^ to identify single-base mutations. He employs breadth-first search method in a straightforward way, too, which makes it much simpler to comprehend his approach.
|
|
by Packy Anderson (PACKY)
Packy presents a colorful, multilingual guide to The Weekly Challenge #400 with implementations in Raku, Perl, Python, and Elixir, providing an opportunity to compare how various languages implement processing of filtering, dictionaries/maps, and recursion for shortest path. I love his entertaining yet honest debugging comments, like highlighting Raku's operator precedence in REPL and observing idiomatic constructs like defaultdict, deque, and Access in Elixir.
|
|
|
by Roger Bell West (FIREDRAKE)
Roger has put together a practical and insightful multi-language analysis of The Weekly Challenge #400. He presents the comparison of two methods: the Perl approach with short-circuit digit checking and the Rust approach employing already created adjacency graph traversal. I highly appreciate the very honest engineering choices that Roger made by combining short-circuit duplicate checking with completely eliminating language-specific techniques.
|
|
by Robbie Hatley
In the article, Robbie provides a brief and logical summary of Perl language that abstains from keeping the whole sequence of the Largest Interval and chooses to keep the information about the length of the longest interval. In his portion of writing on Minimum Genetic Mutation, he describes how to build a chain of mutations that never coincide the same at any step in the process.
|
|
Rakudo
|
|
|
Weekly collections
|
|
|
The corner of Gabor
A couple of entries sneaked in by Gabor.
|
by Robert Acock (LNATION)
In this presentation you will dive into the Punk ecosystem: an open source MVC web framework with first class openAPI integration, template engine, job queue, json codec, non blocking data layer and http client all built on a highly optimised event-loop web server.
|
|
by Gabor Szabo (SZABGAB)
Do you use Telegram? Then you might want to join the Perl Maven Telegram group.
|
|
|
Events
|
|
|
|
|
|
|
|
|
|
|
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|