P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello,
I'm looking to turn a Perl data structure into a CGI query string. There are several modules that turn query strings into data structures (eg CGI::Struct and CGI::State), but I need to do the opposite. I've got something like this:
And I want to turn it into something like this: name=test+name&file_ids[]=1&file_ids[]=2&sub[name]=foo&sub[message]=bar Even "data structure ==> JSON ==> query string" would be ok too. I'm not finding any modules that do what I'm looking for. Does something like this exist? Cheers,
Brent
-- Yeah, I'm a Delt.
In reply to Building a URL Query String from a Data Structure by dorko
|
|