perl
Original:🇺🇸 English
Translated
Perl text processing and scripting with regular expressions. Use for .pl files.
6installs
Sourceg1joshi/agent-skills
Added on
NPX Install
npx skill4agent add g1joshi/agent-skills perlTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Perl
Perl 5.40 (2024) introduced a native and the keyword. It remains unbeatable for text processing one-liners.
try/catch__CLASS__When to Use
- Text Processing: Regex engine is the gold standard.
- Sysadmin: Legacy scripts on every Unix system.
- Bioinformatics: Massive existing codebases (Bioperl).
Core Concepts
Sigils
$scalar@array%hashContext
Scalar vs List context. (count) vs (element).
my $len = @arrmy. ($first) = @arrCPAN
The "Comprehensive Perl Archive Network". The original package repository.
Best Practices (2025)
Do:
- Use : Enable new features
v5.40.use v5.40; - Use and
strict: Mandatory for sanity.warnings - Use : Modern installer.
App::cpanminus
Don't:
- Don't write "write-only" code: value readability over golf.