Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Applies modern Perl 5.36+ idioms, signatures, error handling, and module design conventions to new or legacy Perl code.
Use this skill ↓88% 92%+4 ptsof test cases passed
Passed 23 of 25 test cases with the skill, and 22 of 25 without it.
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.
The function parameter list uses subroutine signatures rather than my ($host, $port) = @_
3 of 3 safety checks passed
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!";
}
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.