perldoc > IO::Stringy

📘 NAME

IO-stringy - I/O on in-core objects like strings and arrays

🚀 Quick Reference

ModuleDescription
IO::AtomicFileWrite a file which is updated atomically
IO::LinesI/O handle to read/write to array of lines
IO::ScalarI/O handle to read/write to a string
IO::ScalarArrayI/O handle to read/write to array of scalars
IO::WrapWrap old-style FHs in standard OO interface
IO::WrapTieTie your handles & retain full OO interface

📋 SYNOPSIS

📖 DESCRIPTION

This toolkit primarily provides modules for performing both traditional and object-oriented i/o on things *other* than normal filehandles; in particular, IO::Scalar, IO::ScalarArray, and IO::Lines.

In the more-traditional IO::Handle front, we have IO::AtomicFile which may be used to painlessly create files which are updated atomically.

And in the "this-may-prove-useful" corner, we have IO::Wrap, whose exported wraphandle() function will clothe anything that's not a blessed object in an IO::Handle-like wrapper... so you can just use OO syntax and stop worrying about whether your function's caller handed you a string, a globref, or a FileHandle.

⚠️ WARNINGS

Perl's TIEHANDLE spec was incomplete prior to 5.005_57; it was missing support for "seek()", "tell()", and "eof()". Attempting to use these functions with an IO::Scalar, IO::ScalarArray, IO::Lines, etc. will not work prior to 5.005_57. None of the relevant methods will be invoked by Perl; and even worse, this kind of bug can lie dormant for a while. If you turn warnings on (via $^W or "perl -w"), and you see something like this...

seek() on unopened file

...then you are probably trying to use one of these functions on one of our IO:: classes with an old Perl. The remedy is to simply use the OO version; e.g.:

$SH->seek(0,0);    ### GOOD: will work on any 5.005
seek($SH,0,0);     ### WARNING: will only work on 5.005_57 and beyond

🔧 INSTALLATION

📌 Requirements

As of version 2.x, this toolkit requires Perl 5.005 for the IO::Handle subclasses, and 5.005_57 or better is strongly recommended. See "WARNINGS" for details.

📌 Directions

Most of you already know the drill...

perl Makefile.PL
make
make test
make install

For everyone else out there... if you've never installed Perl code before, or you're trying to use this in an environment where your sysadmin or ISP won't let you do interesting things, relax: since this module contains no binary extensions, you can cheat. That means copying the directory tree under my "./lib" directory into someplace where your script can "see" it. For example, under Linux:

cp -r IO-stringy-1.234/lib/* /path/to/my/perl/

Now, in your Perl code, do this:

use lib "/path/to/my/perl";
use IO::Scalar;                   ### or whatever

🔖 VERSION

$Id: Stringy.pm,v 1.3 2005/02/10 21:24:05 dfs Exp $

📝 TO DO

📜 CHANGE LOG

👤 AUTHOR

Primary Maintainer
Dianne Skoll (dfs AT roaringpenguin.com).

Original Author
Eryq (eryq AT zeegee.com). President, ZeeGee Software Inc (http://www.zeegee.com).

Co-Authors
For all their bug reports and patch submissions, the following are officially recognized:

Go to http://www.zeegee.com for the latest downloads and on-line documentation for this module.

Enjoy. Yell if it breaks.

IO::Stringy
📘 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 DESCRIPTION ⚠️ WARNINGS 🔧 INSTALLATION
📌 Requirements 📌 Directions
🔖 VERSION 📝 TO DO 📜 CHANGE LOG 👤 AUTHOR

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-27 09:44 @216.73.216.194
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^