good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: Building data structures from CGI paramsby Anonymous Monk |
on Nov 22, 2010 at 02:31 UTC ( [id://872864]=note: print w/replies, xml ) | Need Help?? |
Well, that doesn't exactly match your syntaxt, but I found
it on 3rd try, PHP::HTTPBuildQuery
Ok, here is a start (with help from Corion)
http://php.net/manual/en/function.http-build-query.php Ok, its the reverse of what you want, and the reverse of it seems to be http://www.php.net/manual/en/function.parse-str.php http://search.cpan.org/dist/PHP-Strings/Strings.pm#parse_str PHP::Strings::parse_str WILL NOT BE IMPLEMENTED.Ha ha, at least now you the real format this is supposed to take, and you write a module to bring this feature to the perl world For a reference implementation see http://phpjs.org/functions/parse_str:484, inifintely more readable than the php c-source maze The reference tests makes it seem doable mb_parse_str.phpt/ mb_parse_str02.phpt
In Section
Seekers of Perl Wisdom
|
|