This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The in-memory files require PerlIO::scalar.
[perl5.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
NIS
51;
6__END__
b3d30bf7
NIS
7
8=head1 NAME
9
e934609f 10PerlIO::scalar - support module for in-memory IO.
b3d30bf7
NIS
11
12=head1 SYNOPSIS
13
8ec39683
RGS
14 open($fh,"<",\$scalar);
15 open($fh,">",\$scalar);
16
17or
18
19 open($fh,"<:scalar",\$scalar);
20 open($fh,">:scalar",\$scalar);
b3d30bf7
NIS
21
22=head1 DESCRIPTION
23
e934609f 24C<PerlIO::scalar> only exists to use XSLoader to load C code that provides
b3d30bf7
NIS
25support for treating a scalar as an "in memory" file.
26
47bfe92f
JH
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
NIS
29
30=cut
31
32