Spotlight · Module · week of 2026-09-21

Type::Tiny

Type constraints that work with Moo, Moose, or nothing

Type::Tiny is a small constraint library you can drop on a Moo or Moose class, or use on its own with Type::Params to check subroutine arguments. Declare Int, ArrayRef[Str], or a Dict of named keys once, then reuse those types in attributes, signatures, and test assertions. On 5.36+ it pairs cleanly with native signatures: validate the incoming values, then let the rest of the sub assume they already match. Install via cpm; Types::Standard covers the usual scalars, refs, and Maybe wrappers without pulling in Moose.

Source / docs Propose a project

One-liner of the week · 2026-09-21

Hour-of-day request counts from a Combined Log

perl -nE '/:(\d{2}):\d{2}:\d{2} / and $h{$1}++; END { say sprintf("%s\t%d", $_, $h{$_}//0) for map { sprintf "%02d", $_ } 0..23 }' access.log

Bins Combined Log timestamps by hour so a quiet-versus-peak day is visible without a log parser.

News

All news

Updated 2026-09-21

More