So I Guess I’m Back
Hi⦠remember me? Been away a while, and now I have a whole heap of bug reports to get through. But you, dear reader, I'm giving the inside track. If there's a bug in one of my modules and you…
Hi⦠remember me? Been away a while, and now I have a whole heap of bug reports to get through. But you, dear reader, I'm giving the inside track. If there's a bug in one of my modules and you…
As you may be aware, I'm writing a book which will eventually become a free e-book. This is my third report on how I'm getting along….
I've just arrived back from the London Perl Workshop. Lots of very interesting stuff. A big thank you to the organizers! I especially liked: Extending Syntax – Functional Programming meets Macros by LanX; The Internet of Personification by Matt S…
This month has been quite a busy one for me, so I haven't had much chance to work on my (in-progress) book. However, I have had some time to start work on a short talk for London Perl Workshop 2014…
Yes, in my warped mathematics, 0.042 is nearly 1.000000. Exporter::Tiny is a module I split out of the Type::Tiny distribution. It's an exporter, offering roughly the same capabilities as Sub::Exporter, but with a lighter footprint. I've not massively promoted it,…
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…
As you may be aware, I'm writing a book which will eventually become a free e-book. (Oh how I'm beginning to hate the e- prefix on everything vaguely related to computers. Or should I call them e-machines?) This is my…
I've recently released a new module called Object::Util to CPAN. This is a set of handy methods for working with classes and objects in Perl. It is inspired by Safe::Isa, a module which takes advantage of the fact that coderefs…
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,…
Ingredients
400 g milk chocolate
1 punnet of raspberries
1 tin of mandarin segments, drained
1 packet of sponge fingers
1 packet of marshmallows
1 DVD of Frozen
5 five-year-old girls
1 three-year-old boy
Equipment
Chocolate fondue maker
TV
DVD player
Frozen karaoke tracks
Method
Stir for three and a half hours.
Oh man, I can’t believe I missed the latest Woolly & Tig special. It was apparently broadcast the same day we went off on holiday.
I've never really used the Perl debugger much (maybe I should learn?) and usually resort to lots of use Data::Dumper; print Dumper($somevar); statements to help me understand what's going wrong with a piece of code. However, what I often find…
In Perl, hashes are typically used for two sorts of purposes: maps (where the hash key acts as an object identifier) and dictionaries (where the hash key acts like a field name). A quick illustration of what I mean…
Let's say you want an attribute to accept a pair of numbers – perhaps a geographic co-ordinates [ 50.873, -0.002 ]. You could constrain the attribute as ArrayRef[Num], but that would accept an arrayref containing a single number, or…
So you have this Moo class, and it turns out what you really need for it is the StrictVersionStr type constraint defined in MooseX::Types::Perl. You could switch the class to Moose, but long term you want to stick with…
It's been almost 17 months, and over 160 releases to get there, but Type-Tiny 1.000000 has been released on CPAN Day 2014. Type-Tiny is a framework for type constraints and coercions. It can be used for isa checks in Moose,…