perl-dev

Provide modern Perl guidance, tooling recommendations, and coding standards.

1|Updated Sep 16, 2025
One-click install
npx skills add https://github.com/sk8metalme/ai-agent-setup --skill perl-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perl-dev
Source: https://github.com/sk8metalme/ai-agent-setup/tree/main/plugins/lang-perl/skills/perl
Command: npx skills add https://github.com/sk8metalme/ai-agent-setup --skill perl-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Perl開発をモダンなツールと手法でサポートします。Mojolicious/DBI/Carton、perlcritic、Test::More などをカバー。

Core Features & Use Cases

  • Mojolicious/Dancer2 などのモダンPerlフレームワーク
  • DBI/DBIx::Class でのデータベース操作
  • Test::More / perlcritic による品質保証
  • Cartonによる依存関係管理

Quick Start

Quick Start: Mojoliciousアプリを作成してテストを実行します。

Frequently Asked Questions about perl-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a modern Perl web application with testing and dependency management?

Modern Perl web applications use frameworks like Mojolicious or Dancer2 for routing and request handling, Test::More for unit and integration tests, and Carton for reproducible dependency management. Enforce strict, warnings, and utf8 pragmas; use Perl::Critic for code quality; and maintain high test coverage as part of your development workflow.

What's the best way to handle database access in Perl applications?

Use DBI for direct database access or DBIx::Class for object-relational mapping. Both integrate with modern Perl frameworks and support parameterized queries to prevent SQL injection. Combine with Carton to lock database driver versions and ensure consistency across environments.

How do I ensure code quality and maintainability in Perl projects?

Apply Perl::Critic to enforce coding standards, write tests with Test::More to achieve high coverage, and use strict mode with warnings enabled. Modern Perl features like subroutine signatures (via feature 'signatures') improve readability. Carton locks dependency versions to prevent unexpected behavior from updates.

Can I use Mojolicious and Dancer2 together, or should I choose one?

Mojolicious and Dancer2 are separate web frameworks with different design philosophies. Mojolicious is full-featured and batteries-included; Dancer2 is lightweight and minimal. Choose based on project scope—Mojolicious for complex applications, Dancer2 for simpler APIs or microservices.

Do I need special configuration to enable modern Perl features like signatures and taint mode?

Signatures require Perl 5.20+ and the 'feature' pragma. Taint mode activates with the -T flag on the shebang or perl invocation and is essential for web applications handling user input. Both are enforced by this Skill's standards for security and code clarity.

How do I package and distribute Perl modules with their dependencies?

Use Carton to create a cpanfile listing all dependencies with pinned versions, then generate cpanfile.lock for reproducible installs. Distribute both files with your module so users run 'carton install' to replicate your exact dependency tree.