|File Search||Catalog||Content Search|
Note that perl-5.8 and better has built-in support for "in memory" files, which are set up by passing a reference instead of a filename to the open() call. The reason for using this module is that it makes the code backwards compatible with older versions of Perl.
IO::String is an IO::File (and IO::Handle) compatible class that read or write data from in-core strings. It is really just a simplification of what I needed from Eryq's IO-stringy modules. As such IO::String is a replacement for IO::Scalar. Installation as usual: perl Makefile.PL make make test make install Documentation is embedded in the module. Copyright 1998-2005 Gisle Aas. more»
String(3) User Contributed Perl Documentation String(3) NAME IO::String - Emulate file interface for in-core strings SYNOPSIS use IO::String; $io = IO::String->new; $io = IO::String->new($var); tie *IO, 'IO::String'; # read data <$io>; $io->getline; read($io, $buf, 100); # write data print $io more»
2005-12-05 Gisle Aas <gisle@ActiveState.com> Release 1.08 The untie code in close() just seemed wrong, so just remove it. The object still seems to get cleaned up on various versions perl. 2005-10-24 Gisle Aas <gisle@ActiveState.com> Release 1.07 Make sure read() will not return negative values. <https://rt.cpan.org/Ticket/Display.html?id=13841> 2004-11-05 Gis more»