Defining parameters in a Perl 6 sequence

Leave a comment

For instance, given a numerical pattern, Perl 6 can intuit the next numbers in the series. The statement “(1,3,5,7….*)” will return a set of twenty odd numbers, starting at one. The statement “(1,2,4….*)” will return a sequence of successive numbers raised by the power of two, each a double of the number preceding it.

In an example given by Larry Wall at YAPC:: EU 2010, we can define the parameters of a sequence, as in the example (the Fibonacci sequence), written in Perl 6:

More

Perl 6: My first script

Leave a comment

Patrick Michaud announced the date of Rakudo Perl, AKA Perl 6, on YAPC::EU 2009 in Lisbon for Spring 2010 … now it is a reality.

You can download Rakudo Star (or Rakudo *) from rakudo.org

This is my first script in Perl 6:

More