using-perl
Skill4 starsChanged 8 months agoMITView on GitHub
Write, review, and debug Perl for the RISC OS build environment, especially scripts that must run under the RISC OS Perl 5.001 interpreter rather than only under a modern host Perl. Use when changing `.pl` or `.pm` files, diagnosing RISC OS Perl parser/runtime failures, or checking whether a Perl construct is too new for the target interpreter.
In this repository47 other files it gives its agents.
- allocating-resourcesSkill
- ci-testingSkill
- creating-pull-requestsSkill
- designing-modulesSkill
- porting-to-riscos-cSkill
- reading-assemblySkill
- riscos-commandsSkill
- riscos-desktop-fileractionSkill
- riscos-filer-likeSkill
- riscos-filesystemSkill
- riscos-graphics-convertersSkill
- riscos-network-dcistatisticsSkill
- riscos-network-resolverSkill
- riscos-outputSkill
- riscos-reSkill
- riscos-styleSkill
- riscos-throwbackSkill
- riscos-urls-fetchingSkill
- riscos-urls-launchingSkill
- riscos-wimp-appSkill
- riscos-wimpSkill
- riscos-wimp-templatesSkill
- updating-robe-skillsSkill
- using-bbcbasicSkill
- using-cmhgSkill
- using-ghSkill
- using-gitSkill
- using-libasmSkill
- using-libgcontextSkill
- using-liboslibSkill
- using-libriscoslibSkill
- using-libtoolboxSkill
- using-makefilesSkill
- using-stronghelpSkill
- using-toolbox-imagefilegadgetSkill
- using-tooltesterSkill
- writing-assemblySkill
- writing-assembly-testsSkill
- writing-cmodulesSkill
- writing-cplusplusSkill
- writing-cSkill
- writing-fortranSkill
- writing-oslib-defsSkill
- writing-pascalSkill
- writing-prminxmlSkill
- writing-pymodulesSkill
- writing-pyromaniac-integration-testsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Check the target version with riscos-build-run --command 'perl -v' if compatibility matters.
- Distinctive: line 14
Read references/perl-5.001-checklist.md before editing code that will run on RISC OS.
- Distinctive: line 15
Prefer old-Perl-safe constructs while editing.
- Distinctive: line 20
Treat Perl 5.001 compatibility as a requirement for RISC OS-executed scripts.
- Very specific: line 21
Prefer 2-argument open with bareword filehandles over newer open(...) forms.
- Very specific: line 22
Use binmode(FILEHANDLE) for binary I/O.
- Very specific: line 23
Avoid lexical filehandles such as my $fh.
- Very specific: line 24
Always pass an explicit mode to mkdir, such as 0755.
- Distinctive: line 25
Do not assume host Perl success proves RISC OS Perl compatibility.
- Very specific: line 29
When a script is meant to run on RISC OS, validate it there with the script and any required resource directories included in the …
- Very specific: line 31
Do not run more than 2 riscos-build-run jobs concurrently.
- Distinctive: line 38
If a failure appears only on RISC OS, add or update guidance in this skill when the lesson is generic rather than repository-specific.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Using Perl
Assume the target interpreter is the RISC OS Perl shipped in the build environment unless the task clearly says otherwise. Validate against that interpreter, not just the host Perl.
Quick workflow
- Check the target version with
riscos-build-run --command 'perl -v'if compatibility matters. - Read references/perl-5.001-checklist.md before editing code that will run on RISC OS.
- Prefer old-Perl-safe constructs while editing.
- Syntax-check on the host if useful, but always confirm the final behaviour under
riscos-build-run.
Default rules
- Treat Perl 5.001 compatibility as a requirement for RISC OS-executed scripts.
- Prefer 2-argument
openwith bareword filehandles over neweropen(...)forms. - Use
binmode(FILEHANDLE)for binary I/O. Do not use:raw. - Avoid lexical filehandles such as
my $fh; use classic filehandles likeIN,OUT,FH. - Always pass an explicit mode to
mkdir, such as0755. - Do not assume host Perl success proves RISC OS Perl compatibility.
Validation
When a script is meant to run on RISC OS, validate it there with the script and any required resource directories included in the riscos-build-run file list.
Do not run more than 2 riscos-build-run jobs concurrently. The build server may struggle with higher concurrency and produce misleading infrastructure failures.
Typical checks:
riscos-build-run --command 'perl -v'riscos-build-run script.pl support-dir --command 'Perl script.pl ...'
If a failure appears only on RISC OS, add or update guidance in this skill when the lesson is generic rather than repository-specific.
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.

