perl-patterns
堅牢でメンテナブルなPerlアプリケーションを構築するためのModern Perl 5.36+のイディオム、ベストプラクティス、規約。
Original · translation is not supported for this source languageTarget: Target not categorized. 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 Japanese text
Topics in the source
- モダンPerl開発パターン
- アクティベートするタイミング
- 仕組み
- コア原則
- 1. v5.36プラグマの使用
- 2. サブルーチンシグネチャ
- 3. コンテキスト感度
- 4. 後置逆参照
堅牢でメンテナブルなアプリケーションを構築するためのイディオマティックなPerl 5.36+パターンとベストプラクティス。 新しいPerlコードまたはモジュールを書くとき イディオム準拠のためにPerlコードをレビューするとき レガシーPerlをモダンな標準にリファクタリングするとき PerlモジュールのアーキテクチャをDesignするとき 5.36以前のコードをモダンなPerlに移行するとき これらのパターンをModern Perl 5.36+のデフォルトへのバイアスとして適用する: シグネチャ、明示的なモジュール、集中的なエラー処理、テスト可能な境界。以下の例は出発点としてコピーし、目の前の実際のアプリ、依存スタック、デプロイモデルに合わせて締め付けることを意図している。 単一のuse v5.36が古い定型文を置き換え、strict、warnings、サブルーチンシグネチャを有効化する。 明確さと自動アリティチェックのためにシグネチャを使用する。 スカラーvsリストコンテキストを理解する — Perlのコアコンセプト。 ネストされた構造で読みやすさのために後置逆参照構文を使用する。 中置型チェック — blessed($o) && $o->isa('X')を置き換える。 軽量でモダンなOOにはMooを優先する。メタプロトコルが必要な場合のみMooseを使用する。 | レガシーパターン | モダンな置き換え | |---|---| | use strict; use warnings; | use v5.36; | | my ($x, $y) = @; | sub foo($x, $y) { ... } | | @{ $ref } | $ref->@ | | %{ $ref } | $ref->% | | open FH, " isa('X') | $o isa 'X'(5.32+) | | builtin::true / false | use builtin 'true', 'false';(5.36+、実験的) | 忘れないこと: モダンなPerlはクリーン、読みやすく、安全である。use v5.36に定型文を処理させ、オブジェクトにはMooを使用し、手作りのソリューションよりCPANの実績あるモジュールを優先する。
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/perl-patterns/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
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-09T14:01:49.524Z.
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.