Perl 6 - Learn and Use the Perl 6 Programming Language

Learn Perl 6 with our comprehensive guide. Explore tutorials, examples, and cheat sheets. Install Perl 6 using rakudo and manage packages with zef.

Perl 6

This guide provides a comprehensive introduction to Perl 6, including installation instructions and helpful resources.

Installation

Installing Rakudo

Rakudo is the primary Perl 6 compiler. Installation methods vary depending on your operating system. For Debian/Ubuntu systems, use the following command:

apt-get install rakudo

Installing Rakudobrew and Zef

Rakudobrew is a package manager for Perl 6. Zef is a module installer. Follow these steps to install them:

git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew
export PATH=~/.rakudobrew/bin:$PATH
# or fish shell: set -U fish_user_paths ~/.rakudobrew/bin/ $fish_user_paths
rakudobrew init
rakudobrew build moar 2017.12
rakudobrew build zef
zef install p6doc
rakudobrew rehash

Using Zef

After installing zef, you can install Perl 6 modules using the following command:

zef install ModuleName

Remember to run rakudobrew rehash after installing new modules to update your system's PATH.

Resources

Explore these additional resources to enhance your Perl 6 learning experience: