URI::Encode is a Perl module that provides simple URI (Percent) encoding/decoding.
The main purpose of this module (at least for me) was to provide an easy method to encode strings (mainly URLs) into a format which can be pasted into a plain text emails, and that those links are 'click-able' by the person reading that email. This can be accomplished by NOT encoding the reserved characters.
If you are looking for speed and want to encode reserved characters, use URI::Escape::XS
SYNOPSIS
# OOP Interface
use URI::Encode;
my $uri = URI::Encode->new({encode_reserved =>0});
my $encoded = $uri->encode($data);
my $decoded = $uri->decode($encoded);
# Functional
use URI::Encode qw(uri_encode uri_decode);
my $encoded = uri_encode($data);
my $decoded = uri_decode($encoded);
Product's homepage
Requirements:
· Perl