home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomeJava and XSLTSearch this book

8.171. PerlIO::Scalar

Supports in-memory I/O. It exists so it can use XSLoader to load C code that supports treating a scalar as an "in-memory" file. PerlIO::Scalar allows all normal file operations to be performed on the handle. Returns undef.

For example:

#!/usr/local/bin/perl -w
use PerlIO::Scalar;
open($fh, "<...", \$some_scalar);

This module is part of the core Perl distribution starting with Perl 5.8.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.