Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Well, you could use a regex to URL encode all the elements in your URL parameters, then join them together into a single query string. But, there is a much simpler way, using the CPAN module URI. Below is an example program using URI that does something similar to what you want:
A well formed URL will be printed out, and any parameters will be URL encoded properly. A nice bonus is that the code made with URI is easy to read and hides all the potentially messy URL construction/encoding details from you. I almost never work with URL's by hand any longer since I started to use this module. In reply to (dkubb) Re: (2) Oops! (Query String messed up)
by dkubb
|
|