Thanks for telling me about that script. I didn't know about it.

I have tested a config file that has a single <constraints>...</constraints> and the results printed was a hashref like:

constraints => {
type => 'Required',
},

but if I added 2 constraints, the result was an arrayref:

constraints => [
{
type => 'Required',
},
{
type => 'Word',
},
],

So I don't know what it should be, a hashref, or an arrayref that contains more hashrefs.

Or maybe it works with both of them, but I don't know then why it gives that error when it is not a hashref.

Thanks.

--
Octavian

----- Original Message ----- From: "Carl Franks" <fireart...@gmail.com> To: "HTML Form Creation,Rendering and Validation Framework" <html-formfu@lists.scsys.co.uk>
Sent: Friday, June 25, 2010 12:23 PM
Subject: Re: [html-formfu] Bug?


btw, a good way to help narrow down config problems is to use the
html_formfu_dumpconf.pl script that is installed by HTML-FormFu

$ html_formfu_dumpconf.pl ./config-file.conf

This uses Data::Dumper to allow you to check if the config file is
parsed as you're expecting.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5227 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5228 (20100625) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to