Badger::Codec::URI(3pm)

Badger::Codec::URI3pm

Uri encode/decode

Usage

    use Badger::Codec::URI;
    my $codec   = Badger::Codec::URI->new();
    my $encoded = $codec->encode("Hello World!");
    my $decoded = $codec->decode($encoded);

Overview

This module implements a subclass of Badger::Codec for URI encoding and decoding.

Functions

encode_uri($data)

This function URI-encodes the $data passed as an argument.

decode_uri($data)

This function URI-decodes the $data passed as an argument.

Methods

encode($data)

This method URI-encodes the data referenced by the first argument. It delegates to the encode_uri() function.

    $encoded = Badger::Codec::URI->encode($data);

decode($data)

This method decodes the encoded data passed as the first argument. It delegates to the decode_uri() function.

    $decoded = Badger::Codec::URI->decode($encoded);

encoder()

This method returns a reference to the encode_uri() function.

decoder()

This method returns a reference to the decode_uri() function.

Author

Andy Wardley <http://wardley.org/>

From libbadger-perl 0.16-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.