Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: hash to query string using semicolon

by jasonk (Parson)
on Feb 16, 2009 at 22:18 UTC ( #744231=note: print w/ replies, xml ) Need Help??

in reply to hash to query string using semicolon

URI::QueryParam doesn't use anything for query parameters, it just passes it's data on to URI, which lets you choose how they are delimited...

use URI; my $u = URI->new( "" ); $u->query_form( { foo => 1, bar => 2 }, ';' ); print "$u\n";

And if you just want the query string, you can get it from $u->query.
We're not surrounded, we're in a target-rich environment!

Comment on Re: hash to query string using semicolon
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744231]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2015-10-06 23:12 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (163 votes), past polls