Here is a preliminary version of a uuencode module for tcllib inclusion. There are two entry points. uuencode::encode and uuencode::decode just encode or decode the input data while uuencode::uuencode and uuencode::uudecode will generate a properly formatted message (lines limited to 67 chars, length encoded into the first character). [PT] This is now part of [Tcllib] in the base64 module as uuencode package. So : % 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} % ---- See the code at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/tcllib/tcllib/modules/base64/uuencode.tcl?rev=HEAD&content-type=text/vnd.viewcvs-markup ---- [Category Package], subset [Tcllib] see also [uudecode]