DESCR 1.0 KB

1234567891011121314151617181920212223
  1. SYNOPSIS
  2. use Convert::UU qw(uudecode uuencode);
  3. $encoded_string = uuencode($string,[$filename],[$mode]);
  4. ($string,$filename,$mode) = uudecode($string);
  5. $string = uudecode($string); # in scalar context
  6. DESCRIPTION
  7. uuencode() takes as the first argument a scalar that is to
  8. be uuencoded. Alternatively a filehandle may be passed
  9. that must be opened for reading. It returns the uuencoded
  10. string including begin and end. Second and third argument
  11. are optional and specify filename and mode. If unspecified
  12. these default to "uuencode.uu" and 644.
  13. uudecode() takes a string as argument which will be
  14. uudecoded. If the argument is a filehandle this will be
  15. read instead. Leading and trailing garbage will be
  16. ignored. The function returns the uudecoded string for the
  17. first begin/end pair. In array context it returns an array
  18. whose first element is the uudecoded string, the second is
  19. the filename and the third is the mode.