Patrick Hochstenbach schreef op wo 11-06-2014 om 07:44 [+0200]:
You just might need to upgrade your Catmandu (cpan Catmandu) to get the
fixed. You are probably using 0.9* syntax features with an older version of
Catmandu.
Ah, turns out I was on an 0.8 version, from around a month ago.
I'm attempting to have a fixer that says if this field hasn't already
been set, set it to 0, so I have:
unless exists('onloan')
add_field('onloan', '0')
end
This causes the error:
can't load fix unless exists('onloan')
add_field('onloan', '0')
end
: coercion for _fixer (constructor