MIME::IO - DEPRECATED package for turning things into IO handles Deprecated. As of MIME-tools 4.0, these routines are done by IO:: modules. This module will be going away soon. As 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:
closegetlinegetlinesprint ARGS...read BUFFER,NBYTES
Now with 5.004 on the shelves, tiehandle() makes this unnecessary. Oh, well. :-)
MIME::IO::Handle Obsoleted 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::Scalar Obsoleted 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;...
Copyright (c) 1996, 1997 by Eryq / [email protected] All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. $Revision: 4.104 $ $Date: 1998/05/14 02:00:42 $