Install any skill in seconds. Free to start, no credit card required.
Get Started Free →loulanyue/perl-patterns
Modern Perl 5.36+ idioms, best practices, and conventions for building robust, maintainable Perl applications.
Passed 23 of 25 test cases with the skill, and 22 of 25 without it.
2 fixed21 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a Perl function that opens a database connection given a required host, an optional port defaulted to 5432, and an optional timeout defaulted to 30 seconds.
| Checked | Without skill | With skill |
|---|---|---|
| The function parameter list uses subroutine signatures rather than my ($host, $port) = @_ | Missed | Passed |
| Default parameter values are specified inside the subroutine signature declaration | Missed | Passed |
The instructions your model reads when the skill loads.
Idiomatic Perl 5.36+ patterns and best practices for building robust, maintainable applications.
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.
v5.36 PragmaA single use v5.36 replaces the old boilerplate and enables strict, warnings, and subroutine signatures.
# 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!";
}
test cases passed, vs 22 / 25 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.