8

I've got myself a copy of Rakudo and I'd love to give it a test drive. After looking around the Internet I found some code snippets of cool Perl 6 stuff, but no complete scripts. Any sites that make practical Perl 6 scripts available would be appreciated.

Thanks guys, Ehtyar.

Pat
  • 36,282
  • 18
  • 72
  • 87
Ehtyar
  • 226
  • 2
  • 4

5 Answers5

11

Please check out the perl6-examples repository from http://github.com/perl6/perl6-examples/tree/master, it contains many nice examples.

Also don't hesitate to join #perl6 or irc.freenode.net if you have any questions (or perl6-users@perl.org if you're more the email user).

Sometimes there are also very nice examples on the Perl 6 blogs out there, most of them are collected on http://pl6anet.org.

See also Perl 6 examples on Rosetta Code.

Christopher Bottoms
  • 11,218
  • 8
  • 50
  • 99
moritz
  • 12,710
  • 1
  • 41
  • 63
  • 1
    Planetsix looks like a great blog to read once I become more familiar with perl 6, but I think it has too much content to sift through looking for examples. The github link is excellent, thanks for that :) #perl6 is one of the channels i auto-join whenever I'm on freenode, it's a great place to talk about perl 6. – Ehtyar Jul 08 '09 at 01:47
  • The rest of Moritz's answer still stands but I'm sure he'd have also listed http://rosettacode.org/wiki/Category:Perl_6 if he'd been answering today (his answer is from 2009). – raiph Jan 09 '15 at 22:34
5

This page at the Perl foundation covers new features very well. Specifically "The Long Perl 6 Super-Feature List" (Which isn't actually very long, it explains what new features will be coming in bullet points). If you are specifically looking for new features only, that is the place to look as opposed to sifting through mounds of sample code and dissecting new features.

There are some good smaller examples on this page that will demonstrate new features without an elaborate amount of code.

jjmerelo
  • 22,578
  • 8
  • 40
  • 86
John T
  • 23,735
  • 11
  • 56
  • 82
4

A great place for other perl6 stuff is the Perlgeek blog; there are several articles and examples there, including a functional grammar for JSON parsing...very cool.

Robert P
  • 15,707
  • 10
  • 68
  • 112
3

As Robert mentioned, the Perlgeek blog has some great articles. I've written a couple articles myself, but they mostly cover specific things of Perl 6 (classes, methods, etc).

You can look at the Using Perl 6 book, which is freely available as a pdf here. It has lots of code examples for the concepts and features it covers. The book is also available in the docs directory of the latest Rakudo * release.

Also, I'd recommend looking through the spec tests. If you have Rakudo * installed they should be in rakudo/t/spec. They are organized by the synopsis, which can be a little confusing. However, the benefit from looking through them is great, you'll get a chance to see multiple examples of how to use concepts in Perl 6 that you know work in your current build because you can run the test.

Christopher Bottoms
  • 11,218
  • 8
  • 50
  • 99
mfollett
  • 1,814
  • 15
  • 27
2

Resources I think helpful at the time of writing this comment (June 2015), listed from most to least QA'd:

raiph
  • 31,607
  • 3
  • 62
  • 111