Perl 6

1 program Added 2026-03-11T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Raku
Provenance: commit 08c1634482 · authored 2026-03-11T20:43:34+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

8 sources · pl_id: pl/raku
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q2052676

Wikipedia infobox ↗

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm
Typingdynamic, gradual
Designed byRaku community · Larry Wall
First appeared2015
Influenced byPerl · Ruby · Smalltalk · Haskell · JavaScript
LicenseGNU General Public or Artistic 2
Homepagehttps://raku.org/

Extensions claimed by this language

34 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.6pllinguistprimary10 files
.plpygmentsprimary6.3M files
.rakuwikidataprimary44.6K files
.rakudocwikidataprimary5.2K files
.rakumodwikidataprimary56.2K files
.rakutestwikidataprimary11.7K files
.twikidataprimary3.1M files
.6plpygmentssecondary10 files
.6pmlinguistsecondary4 files
.6pmpygmentssecondary4 files
.nqplinguistsecondary23.2K files
.nqppygmentssecondary23.2K files
.p6linguistsecondary28.8K files
.p6pygmentssecondary28.8K files
.p6llinguistsecondary2 files
.p6lpygmentssecondary2 files
.p6mlinguistsecondary6 files
.p6mpygmentssecondary6 files
.pllinguistsecondary6.3M files
.pl6linguistsecondary13.6K files
.pl6pygmentssecondary13.6K files
.pmlinguistsecondary11.0M files
.pmpygmentssecondary11.0M files
.pm6linguistsecondary139.3K files
.pm6pygmentssecondary139.3K files
.rakulinguistsecondary44.6K files
.rakupygmentssecondary44.6K files
.rakudocpygmentssecondary5.2K files
.rakumodlinguistsecondary56.2K files
.rakumodpygmentssecondary56.2K files
.rakutestpygmentssecondary11.7K files
.tlinguistsecondary3.1M files
.tpygmentssecondary3.1M files
.nqpwikipediaproposed23.2K files

Related languages

Perl6 (0.81)Raku (0.58)Perl (0.29)XS (0.17)Perlito (0.17)

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

Quicksort

Provenance: commit 08c1634482 · authored 2026-03-11T20:43:34+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.p6 · license: Public Domain · added: 2026-03-11T10:00:00Z
sub quicksort (@a) {
    return @a if @a <= 1;
    my $pivot = @a[0];
    my @rest  = @a[1..*];
    return flat quicksort(@rest.grep: * < $pivot),
                $pivot,
                quicksort(@rest.grep: * >= $pivot);
}

say quicksort(<3 1 4 1 5 9 2 6 5 3 5>).join(", ");

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.pl/2.plpredicates[{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\b(?:my\\s+)?class\\b)"]}]
h/linguist/.t/1.tpredicates[{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\bmy\\s+class\\b)"]}]
h/linguist/.pm/1.pmpredicates[{"kind": "any", "regexes": ["^\\s*(?:use\\s+v6\\b|\\bmodule\\b|\\b(?:my\\s+)?class\\b)"]}]

Contribute — propose a file extension

Tell us where to find evidence about Perl 6 (mapped to pl/raku). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Perl 6/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Perl Perl Data Language →