in reply to URL/URI encoding strings to go into query strings
Instead of URI::Escape, you can use URI::URL:
use URI::URL; my $u=URI::URL->new('/myscript.cgi'); $u->query_form(query=>q(what's up doc?), page => 2); print $u->as_string,"\n";
prints:
/myscript.cgi?query=what's+up+doc%3F&page=2
-- dakkar - Mobilis in mobile
|
---|
In Section
Seekers of Perl Wisdom