On Mon, Dec 27, 2010 at 10:00 PM, Moritz Lenz wrote:
> But there's a good reason: .method is a term on its own, and actually
> means $_.method. So if you write @names.foo .bar, that's two terms in a
> row.
>
That is indeed a good reason. I think I knew about it but forgot. That now
the $_ varia
On 12/27/2010 09:12 PM, Daniel Carrera wrote:
> Thanks. The blacklash "unspace" works.
>
> my @sorted = @names.sort({ %sets{$_} })\
>.sort({ %matches{$_} })\
>.reverse;
>
> Though I'm a bit sad that you need that and you can't just separate methods
> with s
On Mon, Dec 27, 2010 at 8:37 PM, Darren Duncan wrote:
> A relevant reading would be
> http://perlcabal.org/syn/S02.html#Whitespace_and_Comments I think; what
> you are trying to do may not directly be allowed, though there may be
> workarounds such as by using "unspace".
>
Thanks. The blacklash "
Daniel Carrera wrote:
I tested the first program using the latest release of Rakudo Star.
The first program has the following:
my @sorted = @names.sort({ %sets{$_} }).sort({ %matches{$_} }).reverse;
This works correctly, but it's long and I'd rather format this line like this:
This works corre
Hello,
After a long absence (been busy) I'm trying to re-learn Perl 6. I'm
reading the book "Using Perl 6", from Jonathan S, Moritz, Mäsak, PM
and Jonathan W.:
http://github.com/downloads/perl6/book/2010.08.a4.pdf
I tested the first program using the latest release of Rakudo Star.
The first pro