Skip to content

Learning Raku (formerly Perl 6)

  • About
  • Book
  • Downloads
  • Events
  • Participate
  • Site
  • Unresolved

Category: Subroutines

Coercion types in signatures don’t work and won’t for awhile

Posted on March 14, 2018 by brian d foy

I wanted to make a method that took an integer or a string that looked like an integer. I thought a coercion type would work nicely for that. The Int […]

Read more
Avoid This Feature / Signatures / Subroutines / Types 2 comments

Quick Tip #18: Short circuit subroutines with multi

Posted on December 3, 2016 by brian d foy

In yesterday’s Quick Tip I used the Fibonacci sequence as an example to show off Rakudo’s –profile option. In today’s tip I’ll use that same sequence to show off Perl […]

Read more
Kickstarter Tips / Subroutines Leave a comment

Quick Tip #15: Phasers

Posted on November 30, 2016 by brian d foy

Perl 6 has phasers, which are subroutines that run at particular times despite their spatial placement inside the the program text. As a program moves from one thing to another, […]

Read more
Kickstarter Tips / Subroutines One comment

Quick Tip #13: Kapreker’s Constant

Posted on November 28, 2016 by brian d foy

A Kaprekar’s Constant is the number you end up with when you repeatedly substract the descending digits of a four digit number from the ascending digits. This is mostly a […]

Read more
Command Line Program / Kickstarter Tips / Sets / Subroutines Leave a comment

Restrain return values

Posted on December 28, 2015 by brian d foy

The utility of Perl 6 (or any language) is something that I can’t already do. When people ask me if they should use Perl 6 (or even regular Perl), I […]

Read more
Subroutines 2 comments

Raku or Perl 6?

Raku used to be called Perl 6, but changed its name in October 2019. You’ll see both names here, and I’m working on updating the title of the paper book.

Learning Perl 6



Recent Posts

  • Learning Raku digital cover mock-up
  • Reducing comparison operators
  • Long Live Raku
  • Taiwanese editions of Learning Perl 6
  • Rakudo Star 2018.10 is in Chocolatey

Archives

Categories

Links

Book errata
Google Books preview
O’Reilly Media listing


Many resources have not changed the name from Perl 6 to Raku, so these resources may use either.

Raku Design Docs (dated)
Raku Docs
Learn Perl 6 in Y Minutes
Raku modules
Rosetta Code examples
Project Euler examples
Perl 6 Examples
Raku Roast (test suite examples)

Powered by WordPress and Merlin.