G'day Stevan / Moosers,
Stevan Little wrote:
> You cannot attached coercions to parameterized types directly. Try this ..
>
> class_type 'DateTime';
>
> # alias the Maybe[DateTime] type ...
> subtype 'MightBeADateTimeObjectOrMightNot' as 'Maybe[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 <[email protected]> | http://perltraining.com.au/
Director of Training | Ph: +61 3 9354 6001
Perl Training Australia | Fax: +61 3 9354 2681