in reply to Re^4: Building data structures from CGI params
in thread Building data structures from CGI params
I'm not sure what you mean. { row => ["row", "row", "row", "your boat"] } looks like the "right" answer to me... What were you expecting?
That line is generated by the workaround
This is Vars output
{ "row[]" => "row\0row\0row\0your boat" },
And this is what your module does with vars output
{ row => ["row\0row\0row\0your boat"] },
This is the bug, it forgot to split on \0, because Vars joins on \0
or better still it should simply accept a CGI.pm compatible object (one with param method, whether its CGI/CGI::Simple/CGI::Lite.....) and use the Vars workaround on it
Do you get it now?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Building data structures from CGI params
by fullermd (Priest) on Aug 08, 2012 at 17:36 UTC | |
by Anonymous Monk on Aug 09, 2012 at 08:30 UTC | |
by fullermd (Priest) on Oct 01, 2012 at 16:27 UTC |
In Section
Seekers of Perl Wisdom