perl.claytongrace.com Modern Perl - news, resources, weekly spotlight curl https://perl.claytongrace.com curl https://perl.claytongrace.com/plain curl https://perl.claytongrace.com/feed.xml == SPOTLIGHT == builtin (Core feature) | week of 2026-10-26 Lexical true, false, weaken, and friends without Scalar::Util From 5.36, Perl keeps a small set of helpers in the builtin namespace so you can import true, false, weaken, blessed, trim, and indexed without pulling Scalar::Util. use builtin qw(true false weaken); puts those names in the current lexical scope; use v5.40; also imports the matching builtin bundle. Some names stayed experimental longer than others, so check the builtin docs for the version you ship. This is the modern replacement for a handful of dual-life utilities, not a new object system. -> https://perldoc.perl.org/builtin == ONE-LINER OF THE WEEK == week of 2026-10-26 | Tally Combined-log HTTP methods perl -nE '/"(GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS) / and $h{$1}++; END { say "$_\t$h{$_}" for sort { $h{$b} <=> $h{$a} || $a cmp $b } keys %h }' access.log Rank request methods from Combined Log request lines. == NEWS == updated 2026-10-26 * [2026-10-26] Weekly Challenge 397 opens with Absent Smallest Positive and Binary Reflection Week 397 of The Weekly Challenge, dated 26 October, asks for the smallest positive integer missing from an array and strictly above that array's mean, then a sort keyed on each number's reversed binary value. Mohammad Sajid Anwar posted his own solutions for week 396. Solutions are due 23:59 UK time Sunday 1 November. https://theweeklychallenge.org/blog/perl-weekly-challenge-397/ * [2026-10-25] Mojolicious 9.53 adds route shortcuts on the app and a process-based morbo Mojolicious 9.53, dated 25 October, puts get, post, under, websocket and the other route verbs on the Mojolicious object as shortcuts onto the routes tree. morbo can now run any server command in a child process, including prefork, and gains -x to start a watched extra command such as an asset bundler; that design no longer works on native Windows fork emulation. The same week, 9.52 sped up route matching, header parsing, and keep-alive static replies. https://metacpan.org/release/SRI/Mojolicious-9.53 * [2026-10-24] Plack 1.0057 indexes the HTTP::Server::PSGI Content-Length fix Plack 1.0057 shipped on 24 October after 1.0056 still declared version 1.0055, so PAUSE did not index that tarball. The code is the 1.0056 security cut: HTTP::Server::PSGI no longer allocates a read buffer the size of a client-supplied Content-Length (CVE-2026-115825). Malformed, negative, duplicate, or over-long Content-Length values now get 400, and Transfer-Encoding chunked is 501 instead of being passed through as the raw body. https://metacpan.org/release/MIYAGAWA/Plack-1.0057 * [2026-10-23] Web::Simple 0.035 caps urlencoded bodies after CVE-2026-114629 Karen Etheridge released Web::Simple 0.035 on 23 October. Urlencoded request bodies are read in chunks rather than as one allocation sized by Content-Length, which is CVE-2026-114629, and MAX_BODY_SIZE now defaults to 8 MiB. 0.034 had landed two days earlier; this is the first Web::Simple cut since 0.033 in 2017. https://metacpan.org/release/ETHER/Web-Simple-0.035 * [2026-10-22] Perl 5.45.4 is the fourth 5.45 development release Eric Herman announced Perl 5.45.4 on 22 October. The perldelta records CVE-2026-107401, a greedy UTF-8 regex match that could skip every character sharing the first byte of a failed attempt, plus several other regex and defer fixes. The cut is about four weeks and 12,000 lines from 5.45.3, from 27 authors; 5.45.5 is expected on 20 November. It is a development release, not 5.46. https://metacpan.org/release/EHERMAN/perl-5.45.4/view/pod/perldelta.pod * [2026-10-22] cpm v1.1.6 ships a self-contained installer with attestations Shoichi Kaji released App::cpm v1.1.6 on 22 October. The notes say the project now publishes a self-contained cpm binary with attestations and documents how to verify that install. cpm remains the parallel CPAN installer. https://metacpan.org/release/SKAJI/App-cpm-v1.1.6 * [2026-10-19] Weekly Challenge 396 opens with Finishing Order and Trionic Array Week 396 of The Weekly Challenge, dated 19 October, asks for selected IDs listed in the order they finished, then whether an integer array rises, falls, and rises again on strict steps. Mohammad Sajid Anwar noted he is looking ahead to the London Perl Workshop. Solutions are due 23:59 UK time Sunday 25 October. https://theweeklychallenge.org/blog/perl-weekly-challenge-396/ * [2026-10-16] Mojolicious 9.50 escapes title and textarea text in Mojo::DOM Mojolicious 9.50 shipped on 16 October. Mojo::DOM now escapes the text inside title and textarea elements when it renders, closing a case where an escaped end tag could become live markup after a sanitize-and-render pass. The same cut adds a SECURITY.md that describes how to report a vulnerability. https://metacpan.org/release/SRI/Mojolicious-9.50 * [2026-10-16] URI::PackageURL 2.26 follows the updated cpan Package URL type Giuseppe Di Terlizzi released URI::PackageURL 2.26 on 16 October. The module builds Package URLs (ECMA-427) and VERS version ranges, and this cut tracks the revised cpan type in the PURL specification. Validation is on by default for from_string and decode_purl, the purl-tool and vers-tool commands are included, and the distribution uses only core modules. https://blogs.perl.org/users/giuseppe_di_terlizzi/2026/10/uripackageurl-226-released-purl-and-vers-for-perl.html * [2026-10-15] pperl 0.6.23 adds an interactive shell and posts its own timings Richard C. Jelinek released pperl 0.6.23 on 15 October. The post sends readers to the changelog at perl.petamem.com and describes an interactive mode, pperl --shell, that keeps variables from line to line. He also reports MIME::Base64, Digest::SHA, and Encode running faster under pperl than their C code in perl 5.44 on his machine; those figures are his timings. pperl is PetaMem's JIT interpreter, not a perl5 release. https://blogs.perl.org/users/petamem/2026/10/pperl-0623---rant-repl-and-speed.html * [2026-10-15] NetAddr::IP 4.080_05 is the fifth trial and asks for smoke tests Dean Hamstead posted NetAddr::IP 4.080_05 on 15 October and asked people to smoke-test it. It is the fifth development trial since he resumed a distribution whose last stable upload, 4.079, was in 2016. The tarball is DJZORT/NetAddr-IP-4.080_05.tar.gz, the license is now MIT, and deprecations are collected for removal in version 5. He reports on the order of a hundred bug and documentation fixes beyond the behaviour changes in the earlier trials. https://blogs.perl.org/users/dean/2026/10/netaddrip-4080-05-please-smoke-test.html * [2026-10-13] Plack 1.0055 fixes five issues assigned CVE-2026-110332 through 110336 Plack 1.0055, dated 13 October, is a security release. Recursive middleware no longer retains every request environment, upload basenames cannot come back as an empty string, a single dot, or dot-dot, and URLMap compares SERVER_PORT as written when it strips that port from Host. ErrorDocument puts the caller's environment back after its internal fetch, so an outer access log still describes the client request. The notes also say the FCGI and Apache2 handlers leave dot segments in PATH_INFO, which means a front-server path rule is not a complete check. The listed identifiers are CVE-2026-110332, CVE-2026-110333, CVE-2026-110334, CVE-2026-110335, and CVE-2026-110336. https://metacpan.org/release/MIYAGAWA/Plack-1.0055 == SECTIONS == /news News briefs /ecosystem Stacks and tools /resources Docs and reading /homelab Homelab and automation /cookbook API and data snippets /submit Propose a spotlight project /contact Contact form (saved on server) /feed.xml Atom feed /plain This text edition HTML: https://perl.claytongrace.com/