perl-patterns
Modern Perl 5.36+ idioms, best practices, and conventions for building robust, maintainable Perl applications.
npx skills add mturac/everything-openai-codex --skill perl-patterns --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Modern Perl Development Patterns Idiomatic Perl 5.36+ patterns and best practices for building robust, maintainable applications. ## When to Activate - 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 ## How It Works 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. ## Core Principles ### 1. Use `v5.36` Pragma A single `use v5.36` replaces the old boilerplate and enables strict, warnings, and subroutine signatures. ```perl # Good: Modern preamble use v5.36; sub greet($name) { say "Hello, $name!"; } # Bad: Legacy boilerplate use strict; use warnings; use feature 'say', 'signatures'; no warnings 'experimental::signatures'; sub greet { my ($name) = @_; say "Hello, $name!"; } ``` ### 2. Subroutine Signatures Use signatures for clarity and automatic arity checking. ```perl use v5.36; # Good: S
- When to Activate
- How It Works
- Core Principles
- 1. Use v5.36 Pragma
- 2. Subroutine Signatures
- 3. Context Sensitivity
- 4. Postfix Dereferencing
- 5. The isa Operator (5.32+)
- Error Handling
- eval/die Pattern
- Try::Tiny (Reliable Exception Handling)
- Native try/catch (5.40+)
- Modern OO with Moo
- Moo Roles
cpanm App::cpanminus Carton # Install tools carton install # Install deps from cpanfile carton exec -- perl bin/myapp # Run with local deps
What does the perl-patterns skill do?
Modern Perl 5.36+ idioms, best practices, and conventions for building robust, maintainable Perl applications.
How do I install it?
Run `npx skills add mturac/everything-openai-codex --skill perl-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From mturac/everything-openai-codex, a repository with 84 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
