Simple percent Encoding.
uri_escape ( string )
URI.encode ( *args )
string - the string to be encoded
Returns encoded version of string
use URI::Escape;
my $string = "http://example.com/perl uri escape";
my $encode = uri_escape($string);
print $encode;
http://example.com/?a=perl%20uri%20escape