February 2014 Archives

My Favourite Test::* Modules

If you don't test your code, what makes you think it works?!

Here are some of my favourite modules for testing Perl code.

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 still fairly lean. There are over 80 distributions that list it as a pre-requisite in some way or another, and more still that depend on those.

So I think it's time to begin planning to stabalize the API. Right now, my plan is:

Introducing warnings::MaybeFatal

OK, so you've written your module like this:

package MyUtils;
use strict;
use warnings FATAL => qw( all );
sub frobnicate { ... }

It passes its test suite, and all is fine and dandy. You use the frobnicate function in a long-running data processing script, and after the first 45 minutes it suddenly dies saying Use of uninitialized value $quux in addition at lib/MyUtils.pm line 13. D'oh!

Planet Moose - January 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, or the MetaCPAN recent uploads page.

If you'd like to contribute some news for next month's issue, you can do so on the wiki.


There have been a couple of minor releases of Moose this month (2.1201 and 2.1202) but nothing especially exciting.

About Toby Inkster

user-pic I'm tobyink on CPAN, IRC and PerlMonks.