Camelia

Perl 6 Maven

Number guessing game in Perl 6

This is the Perl 6 solution to the exercise which is the beginning of a game called the Number Guessing game.


Number guessing game in Perl 6


push vs. append on arrays in Perl 6

push treats the supplied parameters as individual entities and pushes them onto the original array without flattening them.

append (introduced new after 2015.09 release) will flatten the supplied array - if there was only one array supplied, but will reat them as individual entities if more than one arrays are supplied.


push vs. append on arrays in Perl 6


Installing Rakudo Perl 6

Unless you want to actually develop Rakudo itself, the recommendation is to install the Rakudo Star package. It contains the Rakudo compiler, documentation, and some extra modules. It can automatically build MoarVM, so you don't need to worry about that.

Windows users are even more spoiled, as the Rakudo development team provides ready-made binaries of Rakudo Star in msi format.


Installing Rakudo Perl 6


Find Perl 6 modules without Travis CI

Travis-CI is a service that offers Continuous Integration to open source project hosted on GitHub free of charge. It supports a number of languages, including several versions of Perl 5, and Perl 6.

There are plenty of Perl 6 modules hosted on GitHub. Some of them already use Travis-CI, others not yet. In this article we'll write a Perl 6 script that will find the repositories without a .travis.yml.

It would be helpful if all the other Perl 6 projects start using Travis-CI as well.


Find Perl 6 modules without Travis CI


Bailador Application in a module

In the previous examples using Bailador we put all the code in a single app.pl file. At one point we moved the HTML template to the views/ subdirectory, but for larger applications and for reusable code, we'll want to be able to put code in separate files. That's what we are going to do now.


Bailador Application in a module


Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: