Blog88.9K views2,430 votes0 replies2,371 following
Perl Subroutine Signatures: Cleaner Parameters Since 5.36
Perl 5.36 made subroutine signatures stable. They replace manual @_ unpacking with declared parameters, default values, and runtime arity checks — cutting boilerplate and catching call-site errors early. A worked config-loader example shows slurpy hashes and lazy defaults, plus the trade-offs.