[Dancer-users] Fwd: hashes in POST form data

Jury Gorky jury.gorky at gmail.com
Mon Mar 14 19:34:42 CET 2011


well, you can try something like this:

use CGI::WebIn;
foreach (keys params) {
  CGI::WebIn::_processPar($_, params->{$_});
}
# %CGI::WebIn::IN should now contain all you need

but this module sucks really hard


On 14 March 2011 19:56, Nick Knutov <mail at knutov.com> wrote:

> Hello,
>
> are there any ready modules for Dancer that can parse post data from forms
> with hashes in names like CGI::WebIn?
>
> I really need to be able to do
> <input type=text name="Address{Russia}{Moscow}" value="house"> or <input
> name='zone{}' type='checkbox' value='com'>
> and to get something like
> parameters('body')->{Address}->{Russia}->{Moscow}.
>
> --
> Best Regards,
> Nick Knutov
> http://knutov.com
> ICQ: 272873706
> Voice: +7-904-84-23-130
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110314/9df32927/attachment.htm>


More information about the Dancer-users mailing list