perl
Skill15 starsChanged 43 days agoMITView on GitHub
Expert Perl assistance covering regular expressions, hashes, CPAN modules, and text processing. Use when maintaining legacy Perl scripts, performing complex regex manipulations, or writing sysadmin tools.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- its-ash/skillstheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- its-ash/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 94
Use strict mode with named regex capture groups:
- Very specific: line 117
Always Declare use strict.
- Very specific: line 118
Use use v5.36; or Higher: Automatically enables strict, warnings, modern subroutine signatures, and say syntax.
- Distinctive: line 119
Use Mojolicious for Web APIs: Build modern non-blocking web backends and WebSockets with Mojolicious.
- Very specific: line 124
Use single-character global punctuation variables: Replace $@, $/, and $_ with readable English module aliases or modern signatures.
- Very specific: line 125
Use two-argument open: Always use 3-argument open (open(my $fh, "<", $filename)) with lexical filehandles.
- Very specific: line 126
Write new OO code with bare blessed hashes: Use modern use v5.38.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Perl
Perl is a highly capable, feature-rich programming language renowned for powerful regular expression processing, system administration automation, and robust text transformation.
When to Use
- Text Processing & Regex Data Extraction: Rapidly parsing unstructured log files, reports, and legacy data streams.
- Legacy System Administration & DevOps: Maintaining established Unix/Linux automation scripts and cron jobs.
- Bioinformatics & Scientific Data Wrangling: Processing genomic sequencing data and legacy scientific FASTA records.
- Maintaining Classic CPAN Applications: Supporting production enterprise backends built on Catalyst, Mojolicious, or Dancer.
Quick Start
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
my %scores = ( Alice => 95, Bob => 88, Charlie => 92 );
for my $name (sort keys %scores) {
say "$name scored $scores{$name}";
}Core Concepts
Regular Expressions as First-Class Language Primitives
Perl regular expressions are deeply integrated into language syntax:
use strict;
use warnings;
use v5.36;
my $log_entry = '[2026-09-27 10:15:30] ERROR: Payment gateway timeout (code 504)';
if ($log_entry =~ /\[(.*?)\]\s+(\w+):\s+(.*)/) {
my ($timestamp, $severity, $message) = ($1, $2, $3);
say "Timestamp: $timestamp";
say "Severity: $severity";
say "Message: $message";
}Modern Perl (v5.36+ / v5.38+) Native Subroutine Signatures
Replaces manual @_ unpacking with native typed signatures and experimental class features:
use v5.38;
use experimental 'class';
class Account {
field $balance :param = 0;
method deposit($amount) {
$balance += $amount;
return $balance;
}
method get_balance() { return $balance; }
}
my $acc = Account->new(balance => 100);
$acc->deposit(50);
say "Balance: ", $acc->get_balance(); # 150Context Awareness (Scalar vs List Context)
Functions dynamically change return values based on whether a scalar or list is expected:
my @items = ("apple", "banana", "cherry");
my $count = @items; # Scalar context returns array count: 3
my ($first) = @items; # List context returns first element: "apple"Common Patterns
Robust File Parsing with Regular Expressions
Problem: Extracting structured fields from inconsistent log files.
Solution: Use strict mode with named regex capture groups:
use strict;
use warnings;
use feature 'say';
while (my $line = <DATA>) {
chomp $line;
if ($line =~ /^\[(?<timestamp>[^\]]+)\]\s+(?<level>INFO|WARN|ERROR)\s+(?<msg>.*)$/) {
say "Time: $+{timestamp} | Level: $+{level} | Message: $+{msg}";
}
}
__DATA__
[2025-03-01 12:00:00] INFO Server started successfully
[2025-03-01 12:01:23] ERROR Database connection failedBest Practices
Do:
- Always Declare
use strict; use warnings;: Eliminate dangerous silent global variables and undeclared lexical bugs. - Use
use v5.36;or Higher: Automatically enables strict, warnings, modern subroutine signatures, and say syntax. - Use Mojolicious for Web APIs: Build modern non-blocking web backends and WebSockets with Mojolicious.
- Manage Dependencies with
cpanmandCarton: Isolate project dependencies locally inlocal/rather than modifying system Perl.
Don't:
- Use single-character global punctuation variables: Replace
$@,$/, and$_with readableEnglishmodule aliases or modern signatures. - Use two-argument
open: Always use 3-argument open (open(my $fh, "<", $filename)) with lexical filehandles. - Write new OO code with bare blessed hashes: Use modern
use v5.38; use experimental 'class';orMoo/Moose.
Troubleshooting
| Error | Cause | Solution |
Global symbol "..." requires explicit package name | Variable used without prior my, our, or state under use strict. | Declare variable with my $var. |
Can't locate ... in @INC | Required CPAN module not installed in Perl lib path. | Install module using cpanm Module::Name. |
Modification of a read-only value attempted | Attempting to modify constant or $_ aliased to literal string. | Assign to local mutable variable my $copy = $_ before modifying. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

