perl6

Writing perl6 Programs using Rakudo Star: Can't install on OS X

I'm trying to install Rakudo Star on OS X 10.6, and I've reached the always frustrating point where my build has failed and I'm not sure how to procede. Does anyone here know a way past this? (I'm trying to set this up to write some local perl6 programs, so I'm not sure if The Rules want this on Server Fault or on Stack Overflow, slap me...

Sockets code in Rakudo Perl

I've been trying to run some sockets code in Rakudo Perl (freshly built from the repository at http://github.com/rakudo/rakudo) but the implementation of IO::Socket::INET appears to be incomplete. The code I'm trying to run is here: http://github.com/carlins/irc-client/blob/master/lib/IRC/Client.pm This is the error: Method 'inpu...

How can I try Perl 6 without installing it?

I would like to try out Perl 6, but I am not sure that downloading and configuring it is worth the effort. What can I do? ...

Python magical main() signature like Perl 6

Does python have any way to easily and quickly make CLI utilities without lots of argument parsing boilerplate? In perl6, the signature for the MAIN sub automagically parses command line arguments. Is there any way to do something similar in python without lots of boilerplate? If there is not, what would be the best way to do it? I'm t...

How can I return context sensitive return values in Perl 6?

In the summary of differences between Perl 5 and Perl 6, it is noted that the wantarray function is gone: wantarray() is gone wantarray is gone. In Perl 6, context flows outwards, which means that a routine does not know which context it is in. Instead you should return objects that do the right thing in every conte...

How many ways are there to describe the Fibonacci sequence in Perl 6?

I've been looking at the various ways of constructing lazy lists in Perl 6 and I would like to collect all of the concise ways of describing the Fibonacci sequence. I will start this off with the three from masak's journal: my @fibs := (0, 1, -> $a, $b { $a + $b } ... *); my @fibs := (0, 1, { $^a + $^b } ... *); my @fibs := (0, 1, ...