in reply to Moose coerce
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];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose coerce
by Anonymous Monk on Oct 21, 2010 at 11:18 UTC |