Planet Moose – May 2014

Welcome to Planet Moose, a brief write up on what’s been happening in the world of Moose in the past month, for the benefit of those of you who don’t have their eyes permanently glued to the #moose IRC channel,…

Enumerations in Moose

It’s quite a common pattern in object-oriented programming to have an attribute which takes a string as its value, but which only has a small number of valid values. For example: package Shirt; use Moose; # “S”, “M”, “L”,…

DOAPy Dist

So what’s DOPE? No, not DOPE, DOAP… what’s DOAP? Here’s what Wikipedia has to say… DOAP (Description of a Project) is an RDF Schema and XML vocabulary to describe software projects, in particular free and open source software. It…

A Less Smart Smartmatch

The smartmatch operator (~~) introduced in Perl 5.10 (and borrowed from Perl 6) has been the subject of much criticism. Its behaviour changes based on the types of its arguments (arrays vs hashes vs numbers vs strings vs …)….

Towards Type::Tiny 1.000000

Type::Tiny has been knocking around in some shape or another for almost a year now. It’s certainly grown a lot since its first commit. The distribution probably no longer merits the “Tiny” name, though the lead module itself is…