Raku Books / Raku One-Liners

Preface

Dear reader,

You are reading a book about the Raku programming language. This language has appeared as a rename of Perl 6 in October 2019.

Like its parent, Perl 5, the Raku language keeps the spirit of being a powerful tool in many areas, from devops programs for configuration management through different command-line applications to concurrent web servers.

In this book, you will find a number of short programs that you may want to use in your daily practice. You will also find a number of one-line snippets that can enter into your bigger programs.

The goal of the book is not to give a copy-and-paste list of coding examples, but to explain the various bits of Raku that help to use the language more efficiently.

To run the program examples from the rest of the book, you need to download and install the most recent Rakudo Star compiler pack from its website, rakudo.org. If you are using the previous, Perl 6-based compiler, create an alias in your .profile file so that you can use the raku command to run the compiler:

alias raku=perl6

I wish you a pleasant journey in the magic Raku language.

Andrew Shitov Amsterdam, 18 October 2019

Course navigation

Raku One-Liners   |   Command-Line Options