MAN page from Mandrake Other perl-Convert-UU-0.20-1.i386.rpm
lib::Convert::UU
Section: User Contributed Perl Documentation (3)
Updated: perl 5.004, patch 04
Index NAME
Convert::UU, uuencode, uudecode - Perl module for uuencode and uudecode
SYNOPSIS
use Convert::UU qw(uudecode uuencode); $encoded_string = uuencode($string,[$filename],[$mode]); ($string,$filename,$mode) = uudecode($string); $string = uudecode($string); # in scalar context
DESCRIPTION
uuencode() takes as the first argument a string that is to beuuencoded. Note, that it is the string that is encoded, not afilename. Alternatively a filehandle may be passed that must be openedfor reading. It returns the uuencoded string including
begin and
end. Second and third argument are optional and specify filename andmode. If unspecified these default to ``uuencode.uu'' and 644.
uudecode() takes a string as argument which will be uudecoded. If theargument is a filehandle this handle will be read instead. If it is areference to an ARRAY, the elements are treated like lines that form astring. Leading and trailing garbage will be ignored. The functionreturns the uudecoded string for the first begin/end pair. In arraycontext it returns an array whose first element is the uudecodedstring, the second is the filename and the third is the mode.
EXPORT
Both uudecode and uuencode are in
@EXPORT_OK.
AUTHOR
Andreas Koenig <andreas.koenigAATTmind.de>. With code integratedthat was posted to USENET from Hans Mulder<hansmAATTwsinti05.win.tue.nl> and Randal L. Schwartz<merlynAATTteleport.com>.
SEE ALSO
puuencode(1),
puudecode(1) for examples of how to use this module.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- EXPORT
- AUTHOR
- SEE ALSO
This document was created byman2html,using the manual pages.