The in-memory files require PerlIO::scalar.
[p5sagit/p5-mst-13.2.git] / ext / PerlIO / scalar / scalar.pm
CommitLineData
e934609f 1package PerlIO::scalar;
7e209c28 2our $VERSION = '0.02';
f6c77cf1 3use XSLoader ();
e934609f 4XSLoader::load 'PerlIO::scalar';
f6c77cf1 51;
6__END__
b3d30bf7 7
8=head1 NAME
9
e934609f 10PerlIO::scalar - support module for in-memory IO.
b3d30bf7 11
12=head1 SYNOPSIS
13
8ec39683 14 open($fh,"<",\$scalar);
15 open($fh,">",\$scalar);
16
17or
18
19 open($fh,"<:scalar",\$scalar);
20 open($fh,">:scalar",\$scalar);
b3d30bf7 21
22=head1 DESCRIPTION
23
e934609f 24C<PerlIO::scalar> only exists to use XSLoader to load C code that provides
b3d30bf7 25support for treating a scalar as an "in memory" file.
26
47bfe92f 27All normal file operations can be performed on the handle. The scalar
28is considered a stream of bytes. Currently fileno($fh) returns C<undef>.
b3d30bf7 29
30=cut
31
32