Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

Perl 6

Perl 6 - Programming language

< >

Perl 6 is a programming language created in 2015 by Larry Wall.

#288on PLDB 8Years Old 961Users
2Books 0Papers 966Repos

Try now: TIO

Perl 6 (also known as Raku) is a member of the Perl family of programming languages.While historically several interpreter and compiler implementations were being written, today only the Rakudo Perl 6 implementation is in active development. It is introducing elements of many modern and historical languages. Compatibility with Perl 5 is not a goal, though a compatibility mode is part of the specification. Read more on Wikipedia...

Example from Linguist:
# used in t/spec/S11-modules/nested.t BEGIN { @*INC.push('t/spec/packages') }; module A::A { use A::B; } # vim: ft=perl6
Example from Wikipedia:
multi sub hanoi(0, $, $, $) { } # No disk, so do not do anything multi sub hanoi($n, $a = 'A', $b = 'B', $c = 'C') { # Start with $n disks and three pegs A, B, C hanoi $n - 1, $a, $c, $b; # firstly move top $n - 1 disks from A to B say "Move disk $n from peg $a to peg $c"; # then move last disk from A to C hanoi $n - 1, $b, $a, $c; # lastly move $n - 1 disks from B to C }

Language features

Feature Supported Token Example
# A comment
Line Comments #
# A comment
Operator Overloading
Multiple Inheritance
Semantic Indentation X

Books about Perl 6 on goodreads

title author year reviews ratings rating
Think Perl 6: How to Think Like a Computer Scientist Laurent Rosenfeld 2017 0 2 4.00
Learning to program with Perl 6: First Steps: Getting into programming without leaving the command line. J.J. Merelo 0 2 3.50
lex.html · perl-6.html · autolisp.html

View source

- Build the next great programming language · Search · v2023 · Day 205 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub ·