Course of Raku / Essentials / Running programs

Running from REPL

REPL stands for Readโ€“evalโ€“print loop. It is a built-in shell mode where you can type instructions and get intermediate result on the screen, including the state of the variables and the output that your program generates.

To start Rakudo shell, simply type:

$ raku
Welcome to ๐‘๐š๐ค๐ฎ๐๐จโ„ข v2020.10.
Implementing the ๐‘๐š๐ค๐ฎโ„ข programming language v6.d.
Built on MoarVM version 2020.10.

You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor

To exit type 'exit' or '^D'
> 

The output may depend on the currently installed version of the compiler. In the above output, the shell recommends to install some modules for better user experience, so you see the corresponding message.

At the end, thereโ€™s a prompt character > where you can type in your program or its parts. The shell will compile it line by line as soon as you press Enter.

> say 'Hello, World';
Hello, World
> 

Course navigation

โ† Running programs / Running from command line ย ย |ย ย  Running programs / Running from IDE โ†’


๐Ÿ’ช Or jump directly to the exercise to this section.