πŸ“˜ Hello, World! in Perl 6

πŸ“˜ Hello, World! in Raku

N. B. Perl 6 has been renamed to Raku. Click to read more.


The Perl 6 compiler can either read a programme from a file or from the content of the -e command line switch. The simplest β€œHello, World!” programme looks like this:

say "Hello, Perl 6!";

Save it in a file and run:

$ perl6 hello.pl
Hello, Perl 6!

Alternatively, you may use the -e option:

$ perl6 -e'say "Hello, Perl 6!"'
Hello, Perl 6!

Leave a Reply

Your email address will not be published. Required fields are marked *

Retype the CAPTCHA code from the image
Change the CAPTCHA codeSpeak the CAPTCHA code