Spotlight · Core feature · week of 2026-10-26

builtin

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.

Source / docs Propose a project

One-liner of the week · 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

All news

Updated 2026-10-26

More