Raku Language Documentation

Tutorials, general reference, migration guides and meta pages for the Raku language.

At the beginning

Brief introduction Using Raku official documentation
Raku by example P6-101 A basic introductory example of a Raku program

Migration guides

Perl 5 to Raku guide - in a nutshell How do I do what I used to do? (Raku in a nutshell)
Perl 5 to Raku guide - special variables A comparison of special variables in Perl 5 and Raku
Perl 5 to Raku guide - syntax Syntactic differences between Perl 5 and Raku
Perl 5 to Raku guide - operators Operators in Perl 5 to Raku: equivalencies and variations
Perl 5 to Raku guide - functions Builtin functions in Perl 5 to Raku
Python to Raku - nutshell Learning Raku from Python, in a nutshell
JavaScript (Node.js) to Raku - nutshell Learning Raku from Node.js, in a nutshell
Haskell to Raku - nutshell Learning Raku from Haskell, in a nutshell: what do I already know?
Perl 5 to Raku guide - overview How do I do what I used to do?
Ruby to Raku - nutshell Learning Raku from Ruby, in a nutshell: what do I already know?


Module packages Creating module packages for code reuse
Concurrency Concurrency and asynchronous programming
Inter-process communication Programs running other programs and communicating with them
Input/Output File-related operations
Modules How to create, use, and distribute Raku modules
Classes and objects A tutorial about creating and using classes in Raku
Iterating Functionalities available for visiting all items in a complex data structure
Grammar tutorial An introduction to grammars
Doing math with Raku Different mathematical paradigms and how they are implemented in this language
Entering unicode characters Input methods for unicode characters in terminals, the shell, and editors
Creating operators A short tutorial on how to declare operators and create new ones.
Module development utilities What can help you write/test/improve your module(s)
Core modules Core modules that may be useful to module authors
Command line interface Creating your own CLI in Raku
Regexes: best practices and gotchas Some tips on regexes and grammars

Fundamental topics

Syntax General rules of Raku syntax
Operators Common Raku infixes, prefixes, postfixes, and more!
System interaction Working with the underlying operating system and running applications
Regexes Pattern matching against strings
Containers A low-level explanation of Raku containers
Type system Introduction to the type system of Raku
Raku native types Using the types the compiler and hardware make available to you
Functions Functions and functional programming in Raku
Contexts and contextualizers What are contexts and how to switch into them
Variables Variables in Raku
Subscripts Accessing data structure elements by index or key
Enumeration An example using the enum type
Unicode versus ASCII symbols Unicode symbols and their ASCII equivalents
Date and time functions Processing date and time in Raku
Native calling interface Call into dynamic libraries that follow the C calling convention
Traits Compile-time specification of behavior made easy
Newline handling in Raku How the different newline characters are handled, and how to change the behavior
Statement prefixes Prefixes that alter the behavior of a statement or a set of them
Exceptions Using exceptions in Raku
Sets, bags, and mixes Unordered collections of unique and weighted objects in Raku
Lists, sequences, and arrays Positional data constructs
Object orientation Object orientation in Raku
Quoting constructs Writing strings, word lists, and regexes in Raku
Control flow Statements used to control the flow of execution
Grammars Parsing and interpreting text
Packages Organizing and referencing namespaced program elements
Unicode Unicode support in Raku
Performance Measuring and improving runtime or compile-time performance
Phasers Program execution phases and corresponding phaser blocks
Pragmas Special modules that define certain aspects of the behavior of the code
Data structures How Raku deals with data structures and what we can expect from them
Input/Output the definitive guide Correctly use Raku IO
Numerics Numeric types available in Raku
Metaobject protocol (MOP) Introspection and the Raku object system
Hashes and maps Working with associative arrays/dictionaries/hashes

General reference

Opener graphemes Valid opening paired delimiters
Traps to avoid Traps to avoid when getting started with Raku
Community Information about the people working on and using Raku
Terms Raku terms
About the docs Metadocumentation
Glossary Glossary of Raku terminology
Pod6 An easy-to-use markup language for documenting Perl modules and programs
Testing Writing and running tests in Raku
Pod 6 tables The good, the bad and the ugly
FAQ Frequently asked questions about Raku

Advanced topics

Experimental features Preview of upcoming new language features available for user evaluation