in reply to Perl6 Threads

I would assume that you need a "use Thread;"before your code.

But I am only guessing, I have never really used perl6.

Replies are listed 'Best First'.
Re^2: Perl6 Threads
by Anonymous Monk on May 04, 2016 at 17:35 UTC
    Please tell us what perl6 --version gives you
      perl6 version 2013.12 built on parrot 5.9.0 revision 0

        Please try a more recent Rakudo with the MoarVM (default) backend. I recommend 2016.04, but anything from 2016 should work.

        moritz@pete:~$ perl6 -e 'my $thread = Thread.start({ for 1 .. 10 -> $v + { say $v }});' 1 2 3 4 5 6 7 8 9 10 moritz@pete:~$ perl6 --version This is Rakudo version 2016.04-32-g4232204 built on MoarVM version 201 +6.04 implementing Perl 6.c.
Re^2: Perl6 Threads
by Anonymous Monk on May 04, 2016 at 17:24 UTC
    Then the message is "Could not find Thread in any ... (directories)"
      Your initial code works as is.

      I've just tried it with the rakudo from Debian testing (2016.04).

      So I assume there is something wrong with your installation.

      I'd do a clean install of the latest rakudo, otherwise you just end up chasing non-issues due to a broken install...

        Uninstalled the previous version and installed the most recent package (rakudo-star-2016.04) and all the tests were passed. But OS doesn't recognize perl6. It says: The program 'perl6' is currently not installed. You can install it by typing: sudo apt-get install rakudo