Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mintywalker (7886)

mintywalker
  (email not shown publicly)
http://sysmonblog.co.uk/

Journal of mintywalker (7886)

Sunday July 19, 2009
11:00 AM

Moose sub types : one module or another

[ #39312 ]

My initial problem:

How to tell Moose that an attribute was an instance of My::Class OR My::Test::Class.

Whaddaya know, there is more than one way to do it ;)

Seeing as how I got a lot of help from #moose on irc.perl.org I thought I'd write up my findings ...

How to create your own Moose sub types in Perl

. (There is a way to do it without creating a sub-type, but the sub-typing seemed a lot more interesting and general purpose that the specific solution to the original problem)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.