in reply to Arrays: More than one word
If you don't have URI::Escape, just use this to encode spaces:use URI::Escape; $department[0] = "Customer Service"; my $url = "http://www.example.com/script.pl?department=" . uri_escape($department[0]);
A space can be encoded as either a '+' or '%20'; I'm not sure if the former is actually in the spec or not, but it works.$department[0] =~ tr/ /+/;
|
|---|