Originally published at Perl Weekly 739
Hi there!
I used Perl Dancer for many projects, I wrote about it a lot, I even wrote a book about it, so I am quite glad that a new major version was released. Thanks to all the contributors, including Jason A. Crome, Mikko Koivunalho, Yanick Champoux, Karen Etheridge, Sawyer X!
Enjoy your week!
Happy and peacefull New Year to all our Jewish readers, Shana Tova!
--
Your editor: Gabor Szabo.
Announcements
Geizhals Preisvergleich Donates USD 10,000 to The Perl and Raku Foundation
Toronto Perl Mongers Lightning Talks Needs You
The annual Toronto Perl Mongers lightning talks will be held (virtually) this Thursday. (ps. It is also listed among all the other events at the bottomg of the newsletter.)
Announcing Dancer2 2.0.0
New major release!
Articles
Released an Inertia.js Adapter for Mojolicious
Discussion
Perl in a Monorepo
A monorepo is a software-development strategy in which the code for a number of projects is stored in the same repository. Dean is interested in hearing about tools and approaches that have been used with Perl.
confusing failed short-circuit
Have I already mentioned one my many pet peeves, that I recommend never to use $a and $b outside of sort. Not even in small examples.
How to make compilation work in Windows?
The Cache Crash
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 - 340
Welcome to a new week with a couple of fun tasks "Duplicate Removals" and "Ascending Numbers". 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 - 339
Enjoy a quick recap of last week's contributions by Team PWC dealing with the "Max Diff" and "Peak Point" tasks in Perl and Raku. You will find plenty of solutions to keep you busy.
TWC339
The approaches for both tasks are correct under the assumptions and seem efficient for modest array sizes. The tasks are simple but the solutions are concise and cover many relevant kinds of inputs in the examples.
Diff Peak
The solutions are clear, correct and concise, making good use of Rakuβs features. Theyβre well illustrated with examples, easy to follow and demonstrate a solid understanding of the problem.
Sorting for the win
The solution is much more efficient than brute force and strikes a good balance between simplicity and performance. It uses sound reasoning (extremes drive large products), handles special cases (negatives, zeros) and significantly improves scalability.
Perl Weekly Challenge 339
This is an excellent blog post featuring top-tier solutions. It demonstrates a deep understanding of the problems and chooses the most efficient algorithms possible. The code is not just correct but is also elegant and a pleasure to read. The solutions for both tasks are production-ready and would scale efficiently to large inputs.
Max Complication for Min Brute Force
These solutions are clear, correct and efficient. Max Diff avoids brute force by systematically covering all sign combinations, reducing the problem to a handful of candidate checks after sortingβshowing solid algorithmic reasoning and thorough testing. Peak Point is expressed elegantly in a single line, making excellent use of Perlβs expressive features while remaining efficient. Together, the two tasks balance rigor and readability, demonstrating both deep problem understanding and concise, idiomatic coding style.
Points? Whatβs the diff?
This is an excellent, well-written technical blog post. It successfully transforms a seemingly mundane taskβcalculating a leaderboard diffβinto an engaging narrative that showcases the power and elegance of modern Perl. The post is technically sound, pedagogically effective and demonstrates a strong software engineering mindset. It's a perfect example of how to write about code: it explains the why, not just the how.
Pair products, peak points
Solutions are technically correct, robust and well-engineered. They exemplify a pragmatic approach to problem-solving: prioritizing clarity and guaranteed correctness over premature optimization. The code is modern, idiomatic Perl and is a pleasure to read.
The Weekly Challenge #339
Solutions are technically correct and functionally complete, successfully solving both challenges. The code is structured, well-documented and demonstrates a solid understanding of the problem requirements. However, the approach to Task 1 raises significant concerns regarding efficiency and scalability, which heavily impacts the overall assessment.
The Difference has Peaked
Solutions are solidβclear, correct, straightforward and great for demonstrating the basic logic. For tasks of modest size, theyβll work fine. For larger inputs, theyβd be slower than more optimized ones. His decision to trade off some performance for clarity and ease of implementation is reasonable.
Maximum climb
The code is straightforward and easy to follow, making the logic transparent even for less experienced readers. Solutions in both Python and Perl show versatility and consistency in approach. The post acknowledges the brute force nature and performance limitations, which shows awareness of algorithmic complexity.
Week 339 - Max Diff & Peak Point
Solutions are well-structured, demonstrating a solid understanding of the tasks and Perl's capabilities. They are both elegant and efficient, providing a clear and direct answer to the problem.
Weekly collections
NICEPERL's lists
Great CPAN modules released last week;
MetaCPAN weekly report.
Events
Toronto.pm - online - Lightning Talks 2025
September 25, 2025
Annual Russian Perl Conference 2025
September 27, 2025
Boston.pm - online - (2d Tuesday)
October 14, 2025
Toronto.pm - online - How SUSE is using Perl
December 6, 2025
You joined the Perl Weekly to get weekly e-mails about the Perl programming language and related topics.
Want to see more? See the archives of all the issues.
Not yet subscribed to the newsletter? Join us free of charge!
(C) Copyright Gabor Szabo
The articles are copyright the respective authors.
Top comments (0)