| MIME::Tools | MIME::Body | MIME::Decoder | MIME::Entity |
| MIME::Head | MIME::IO | MIME::Latin1 | MIME::Parser |
| MIME::ParserBase | MIME::ToolUtils | MIME::Tools | MIME::Words |
MIME:: |
NAMEMIME::IO - DEPRECATED package for turning things into IO handles
SYNOPSISDeprecated.
WARNINGAs of MIME-tools 4.0, these routines are done by IO:: modules. This module will be going away soon.
DESCRIPTIONAs of MIME-tools 2.0, input and output routines cannot just assume that they are dealing with filehandles. In an effort to come up with a nice, OO way of encapsulating input/output streams, I decided to use a minimal subset of Graham Barr's IO::Handle interface.
Therefore, all that MIME::Body, MIME::Decoder, and the other classes require (and, thus, all that they can assume) is that they are manipulating an object which responds to the following small, well-defined set of messages:
close getline getlines print ARGS... read BUFFER,NBYTES
Now with 5.004 on the shelves, tiehandle() makes this unnecessary. Oh, well. :-)
MIME::IO::HandleObsoleted by IO::Wrap. The code:
use MIME::IO;
my $IO = wrap MIME::IO::Handle \*STDOUT;
can now be written more properly as:
use IO::Wrap;
my $IO = wraphandle \*STDOUT;
MIME::IO::ScalarObsoleted by IO::Scalar. The code:
use MIME::IO;
$IO = new MIME::IO::Scalar \$scalar;
$IO->print("Some data\n");
$IO->print("Some more data\n");
$IO->close; # ...$scalar now holds "Some data\nSome more data\n"
can now be written more properly as:
use IO::Scalar;
$IO = new IO::Scalar \$scalar;
...
AUTHOREryq (eryq@zeegee.com), ZeeGee Software Inc (http://www.zeegee.com).
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
VERSION$Revision: 4.105 $ $Date: 1999/02/09 03:32:37 $