I'm trying to find a away to create a curry style class called BodyParts using Moose. I want to use my class like this:
package main; use BodyParts; my $body = BodyParts->new; $body = $body->legs( size=>42 )->eyes( color => blue); print $body->eyes->color; ## blue
Basically my problem comes down to:
Is there a MooseX extension that takes care of that? What's the true path to concise code here?
Thanks for your enlightment,
-rodrigo
In reply to curried-up moose by rodd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |