http://www.perlmonks.org?node_id=996243


in reply to URL white space issues

There are two modules you might like to check.
Namely:

Using URI::Escape, you can get back, your original URL, like so:
use warnings; use strict; use URI::Escape; my $url = "http://192.168.1.50/cgi-bin/in%20dex.cgi?action=vi%20ew due + to %20"; my $uri = uri_unescape($url); print $uri; # http://192.168.1.50/cgi-bin/in dex.cgi?action=vi ew due + to
But really, I will advice, you seriously consider sierpinski's wisdom on this issue.
Hope this helps

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me