The Perl 6 Programming Language

Hi, my name is Camelia. I'm the spokesbug for Perl 6, the spunky little sister of Perl 5. Like her world-famous big sister, Perl 6 intends to carry forward the high ideals of the Perl community. Perl 6 is currently being developed by a team of dedicated and enthusiastic volunteers. You can help too. The only requirement is that you know how to be nice to all kinds of people (and butterflies). Go to #perl6 ( and someone will be glad to help you get started.

camelia perl bug logo

Jump in!

Rakudo is a compiler for Perl 6 code. Install it and you're all set to run Perl 6 programs!

Download Rakudo Perl 6
for 'dict.txt'.IO.words -> $word {
  say "$word probably rhymes with Perl"
    if $word ~~ /[ea?|u|i] rl $/;

  say "$word is a palindrome"
    if $word eq $word.flip;
my @fib = 0, 1, *+* ... *;
say "Fibbonaci number #8 is @fib[7]";
multi sub postfix:<❢> (Int $i where $i < 0) is tighter(&infix:<*>) {
    fail "Not a Natural Number in Factorial"
multi sub postfix:<❢> (Int $i where 0|1) is tighter(&infix:<*>) { 1 }
multi sub postfix:<❢> (Int $i where $i > 1) is tighter(&infix:<*>) {
    $i * ($i-1)❢

use Test;
isa-ok -1❢, Failure, "Factorial for -1 fails";
ok 0❢ == 1, "Factorial for 0";
ok 1❢ == 1, "Factorial for 1";
ok 5❢ == 120, "Factorial for a larger integer";

Want to see more? Visit Perl 6 examples page