Please provide a minimal demonstration of the problem. At the very least, tell us how it's failing.
Did you specify coerce=>1 on the attribute?
Is your coercion routine getting called?
Is your coercion routine return a reference to a hash as it should (as opposed to a list of key-values)?
What is your coercion routine returning, exactly? Change
return ...;
to
my @x = ...; use Data::Dumper; warn(Dumper(\@x)); return $x[0];
In reply to Re: Moose coerce
by ikegami
in thread Moose coerce
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |