Slash Boxes
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)

  (email not shown publicly)

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 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.
More | Login | Reply
Loading... please wait.