Re: Coercion of Maybe[Foo] not using coerce rules for Foo?

2009-07-09 Thread Paul Fenwick
be[DateTime]'; Thank-you very much! That works perfectly. I can now suck down my guitar-hero stats into a Moose object. ;) Cheerio, Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia| Fax: +61 3 9354 2681

Coercion of Maybe[Foo] not using coerce rules for Foo?

2009-07-09 Thread Paul Fenwick
x27; failed with value undef (not isa Maybe[DateTime]) at /usr/lib/perl5/site_perl/5.10/Moose/Meta/Attribute.pm line 753 FWIW, the attribute in question looks like this: has last_blog_post_at => ( isa => 'Maybe[DateTime]', coerce => 1 ); I'm using Moose 0.87. A

[PATCH] Docs: Added explanations on 'no Moose' and 'make_immutable'.

2009-07-05 Thread Paul Fenwick
Thanks to nothingmuch for assistance in the explanations. --- lib/Moose/Manual/BestPractices.pod |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Moose/Manual/BestPractices.pod b/lib/Moose/Manual/BestPractices.pod index 30c5673..9349718 100644 --- a/lib/Moose/Man

Using attributes for 'requires'

2009-01-18 Thread Paul Fenwick
Paul [1] Since I'm writing short talks for mixed audiences, I can't show anything too scary. Sure, I'm willing to dig around in the guts of all sorts of things, but I'm trying to dispel the myth that as a regular Perl programmer you should have to. -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia| Fax: +61 3 9354 2681

How can I best showcase Moose at a conference talk?

2009-01-07 Thread Paul Fenwick
MooseX::Declare, both of which provide a shinier interface, and hence suit my goals nicely. Cheerio, Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia| Fax: +61 3 9354 2681

Re: MooseX::Setter, request for feedback before pushing to CPAN.

2008-07-31 Thread Paul Fenwick
e say this was one of the factors preventing him from moving to Moose. :) Cheerio, Paul -- Paul Fenwick <[EMAIL PROTECTED]> | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia| Fax: +61 3 9354 2681