Filewatcher File Search File Search
Content Search
» » » » »


Emulate IO::File interface for in-core strings

The IO::String module provide the IO::File interface for in-core strings. An IO::String object can be attached to a string, and will make it possible to use the normal file operations for reading or writing data, as well as seeking to various locations of the string. The main reason you might want to do this, is if you have some other library module that only provide an interface to file handles, and you want to keep all the stuff in memory.

The IO::String module provide an interface compatible with IO::File as distributed with IO-1.20, but the following methods are not available; new_from_fd, fdopen, format_write, format_page_number, format_lines_per_page, format_lines_left, format_name, format_top_name.

Package version:1.01-2


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.

This module requires perl5.005_03 or better because it works best with
Chip's no-memory-leak-on-self-tie-patch.

Installation as usual:

   perl Makefile.P


String(3)        User Contributed Perl Documentation       String(3)

       IO::String - Emulate IO::File interface for in-core strings

        use IO::String;
        $io = IO::String->new;
        $io = IO::String->new($var);
        tie *IO, 'IO::String';

        # read data
        read($io, $buf, 100);

        # write data


libio-string-perl (1.01-2) unstable; urgency=low

  * Fixed mistake in rules, now builds properly with target arch-indep,
    closes: #122558

 -- Matt Hope <>  Thu,  6 Dec 2001 10:10:15 +1100

libio-string-perl (1.01-1) unstable; urgency=low

  * Initial Release, closes: #120471

 -- Matt Hope (Dopey) <>  Wed,  7 Nov 2001 16:38:11 +1100


2000-01-28   Gisle Aas <>

   Releaes 1.01

   The eof() method had oposite logic.  Bug 


This package was originally debianized by Matt Hope
<> on Wed,  7 Nov 2001 16:

Browse inside libio-string-perl_1.01-2_all.deb

         [DIR]DEBIAN/ (4)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libio-string-perl_1.01-2_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017