APR::Base64 - Perl API for APR base64 encoding/decoding functionality
use APR::Base64 (); my $clear = "foo" my $encoded = APR::Base64::encode($clear); my $decoded = APR::Base64::decode($encoded); my $len_enc = APR::Base64::encode_len(length $clear);
APR::Base64 provides the access to APR's base64 encoding and decoding API.
APR::Base64
APR::Base64 provides the following functions and/or methods:
decode
Decode a base64 encoded string
$decoded = decode($encoded);
$encoded
The encoded string.
$decoded
The decoded string.
encode
Encode a string to base64
$encoded = encode($clear);
$clear
The unencoded string.
encode_len
Given the length of an unencoded string, get the length of the encoded string.
$len_enc = encode_len($len_clear);
$len_clear
the length of an unencoded string.
$len_enc
the length of the string after it is encoded
mod_perl 2.0 documentation.
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
The mod_perl development team and numerous contributors.
To install mod_perl2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mod_perl2
CPAN shell
perl -MCPAN -e shell install mod_perl2
For more information on module installation, please visit the detailed CPAN module installation guide.