Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL Percent Encoding (URI Escaping) in Perl

Tags:

url

escaping

perl

Can anyone tell me where I can find encoding functions like

encode("[email protected]") ==> ram%40yahoo.com

and decode("ram%40yahoo.com") ==> [email protected]

Thanks

like image 824
jeny Avatar asked Dec 16 '22 19:12

jeny


2 Answers

Use the URI::Escape module from the URI distribution, which is used by pretty much everything.

like image 116
hobbs Avatar answered Jan 06 '23 19:01

hobbs


You can use the uri_encode and uri_decode functions in the URI::Encode package.

like image 20
Brad Mace Avatar answered Jan 06 '23 19:01

Brad Mace