Go Back   Velocity Reviews > Newsgroups > PERL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

PERL - MIME::Decoder::UU

 
Thread Tools Search this Thread
Old 07-06-2003, 09:15 PM   #1
Default MIME::Decoder::UU


I'm having trouble understanding the MIME:ecoder usage.

Within the context of a MIME email handling program I have an array, @data,
and I want to uuencode it. I thought I could instantiate a MIME:ecoder
with an encoding of 'x-uuencode' and then call the encode method as,

my $decoder = new MIME:ecoder('x-uuencode');
$decoder->encode(@data, @uudata);

However, the encode method only accepts STREAMs as arguments. Obviously I
could write out the array data to a temporary file, close it, open it for
input, open another temporary output file, call encode with the two
temporary files, close the temporary output file, open it for input, read it
into the uuencoded array, and then clean up the two temporary files.

I'm hoping there is a better way and that someone might share other
approaches with me.

Thanks,
Steve




S Etchelecu
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump