SKILL

perl-patterns

Modern Perl 5.36+ idioms, best practices, and conventions for building robust, maintainable Perl applications. Use when writing or reviewing modern Perl 5.36+ code.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Modern Perl Development Patterns
  • When to Activate
  • How It Works
  • Core Principles
  • 1. Use v5.36 Pragma
  • 2. Subroutine Signatures
  • 3. Context Sensitivity
  • 4. Postfix Dereferencing

Idiomatic Perl 5.36+ patterns and best practices for building robust, maintainable applications. Writing new Perl code or modules Reviewing Perl code for idiom compliance Refactoring legacy Perl to modern standards Designing Perl module architecture Migrating pre-5.36 code to modern Perl Apply these patterns as a bias toward modern Perl 5.36+ defaults: signatures, explicit modules, focused error handling, and testable boundaries. The examples below are meant to be copied as starting points, then tightened for the actual app, dependency stack, and deployment model in front of you. A single use v5.36 replaces the old boilerplate and enables strict, warnings, and subroutine signatures. Use signatures for clarity and automatic arity checking. Understand scalar vs list context — a core Perl concept. Use postfix dereference syntax for readability with nested structures. Infix type-check — replaces blessed($o) && $o->isa('X'). Prefer Moo for lightweight, modern OO. Use Moose only when its metaprotocol is needed. | Legacy Pattern | Modern Replacement | |---|---| | use strict; use warnings; | use v5.36; | | my ($x, $y) = @; | sub foo($x, $y) { ... } | | @{ $ref } | $ref->@ | | %{ $ref } | $

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
pi/core/skills/perl-patterns/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T15:01:43.165Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.