Tcllib uuencode

uuencode , a part of the Tcllib base64 module, provides commands to encode and decode data in the uuencode format.

Documentation

official reference (alternates 1 2

Description

PT:

There are two entry points. uuencode::encode and uuencode::decode just encode or decode the input data while uuencode::uuencode and uuencode::uudecode generates a properly formatted message (lines limited to 67 chars, length encoded into the first character).

Example Usage:

% package require uuencode
1.0
% uuencode::encode ABC
04)#
% uuencode::decode 04)#
ABC
% set data [uuencode::uuencode -name sample.dat ABC]
begin 644 sample.dat
#04)#
`
end
% uuencode::uudecode $data
{sample.dat 644 ABC}
%