Hi, I'm new to Perl6. And just ran the first example in the perl6 book.
But, it refused to work. It complains as follows:

Too many positional parameters passed; got 2 but expected between 0 and 1

I find out that the problem is in the line:

my @sorted = @names.sort({ %sets{$_} }).sort({ %games{$_} }).reverse;

And I tried eliminate the second sort, or just the parameters in the
second sort. In both cases, it works.

So, why is this happen? Can it be a bug?

Sorry for my poor English. Hope you all understand what I'm trying to say.

Reply via email to