Perl uri_escape

Simple percent Encoding.

Function

uri_escape ( string )

Alias Function

URI.encode ( *args )

Parameters

string - the string to be encoded

Return value

Returns encoded version of string

Example

use URI::Escape;

my $string = "http://example.com/perl uri escape";
my $encode = uri_escape($string);

print $encode;

Output

http://example.com/?a=perl%20uri%20escape

Github

See also: