[Dancer-users] Fwd: hashes in POST form data
Nick Knutov
mail at knutov.com
Mon Mar 14 21:30:02 CET 2011
I don't think so, but implementation is doubtful.
Unfortunately CGI::WebIn uses strange tie'ing and direct writing to
stdin and there are always strange problems with it in all not native
CGI modes. I've tested it in a lot of ways, including emulation cgi mode
with Plack. But, fantastic,
foreach (keys %{params()}) {
CGI::WebIn::_processPar($_, params->{$_});
}
debug Dumper ( \%IN );
[...]
after sub { %IN = (); };
and it looks ok. Thanks for the idea ;)
On 14.03.2011 23:34, Jury Gorky wrote:
> 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
> <mailto: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
More information about the Dancer-users
mailing list