Exporter::Tiny nearing 1.000000

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,…

Object::Util

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…

Recipe for a fun afternoon

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.

Data::Dumper Debugging

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…

Method Privacy in Perl

This is a slightly expanded version of a comment I posted a couple of days ago on NEILB's blog. Neil was mostly talking about private functions, while I'll be talking mostly about private methods (i.e. object-oriented programming), but I…