views:

165

answers:

4

Hi all,

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.

+5  A: 

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.

John T
I was about to suggest subscribing to Gabor's website and mailing list.
Alan Haggai Alavi
Hi John.I was already aware of 'Learn about perl 6', but the perl 6 talks is an excellent link with a good number of examples. Thanks very much :)
Ehtyar
+8  A: 

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 [email protected] 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://planetsix.perl.org/.

moritz
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
+3  A: 

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
Nice, thanks Robert :)
Ehtyar
A: 

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.

mfollett