Perl Subroutine Signatures: Ditch the @_ Boilerplate Without Breaking Production
Perl's subroutine signatures are stable since 5.36. Here's what they replace, how arity checking catches silent bugs, and when @_ unpacking is still the right call.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Perl's subroutine signatures are stable since 5.36. Here's what they replace, how arity checking catches silent bugs, and when @_ unpacking is still the right call.
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.