1 Nov 17:50
Re: [FormBuilder] support for Source::File
Mark Hedges <hedges <at> ucsd.edu>
2006-11-01 16:50:31 GMT
2006-11-01 16:50:31 GMT
On Tue, 31 Oct 2006, Nate Wiger wrote:
> >
> > Bareword found where operator expected at (eval 186) line 1, near "$value
> > confirm_pass"
>
> It's quite possible the Source::File module can't handle more complex
> cases, due to the fact that it always splits on , and evals stuff
> inline.
>
> What should probably happen is only those fields that are known to
> accept arrayrefs get split, which should solve most problems.
Sucks if you have a field named 'options' though.
Or if you pass an arrayref to your validate to validate a list
of valid options.
validate:
myfieldname: beef, chicken, horta, fish
How could it know?
Maybe it gets too far away from the original syntax. It could
be:
validate:
myfieldname: [ beef, chicken, horta, fish ]
Or, it could be even more like YAML:
(Continue reading)
RSS Feed