in reply to When constructing a URL from script variables, how do I handle spaces properly?

You might want to try modifying it via a substitution. Something like:

$boomdiggity = "www.yayforperl.org/index.pl?go=foo bar"

Then run $boomdiggity through "s/ /%20"

Originally posted as a Categorized Answer.

  • Comment on Re: When constructing a URL from script variables, how do I handle spaces properly?