From: Nick Ing-Simmons Date: Tue, 27 Mar 2001 21:18:58 +0000 (+0000) Subject: Outline docs for PerlIO and PerlIO::Scalar X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3d30bf7e271096b5b02c85f1129c4e49c36a709;p=p5sagit%2Fp5-mst-13.2.git Outline docs for PerlIO and PerlIO::Scalar p4raw-id: //depot/perlio@9395 --- diff --git a/ext/PerlIO/Scalar/Scalar.pm b/ext/PerlIO/Scalar/Scalar.pm index e733a72..2879407 100644 --- a/ext/PerlIO/Scalar/Scalar.pm +++ b/ext/PerlIO/Scalar/Scalar.pm @@ -4,3 +4,23 @@ use XSLoader (); XSLoader::load 'PerlIO::Scalar'; 1; __END__ + +=head1 NAME + +PerlIO::Scalar - support module for in-memory IO. + +=head1 SYNOPSIS + + open($fh,"<...",\$scalar); + +=head1 DESCRIPTION + +C only exists to use XSLoader to load C code that provides +support for treating a scalar as an "in memory" file. + +All normal file operations can be performed on the handle. The scalar is considered +a stream of bytes. Currently fileno($fh) returns C. + +=cut + + diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index c5ce016..65b7ec3 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -24,3 +24,30 @@ sub import 1; __END__ + +=head1 NAME + +PerlIO - On demand loader for PerlIO::* name space + +=head1 SYNOPSIS + + open($fh,">:foo",...) + +=head1 DESCRIPTION + +When an undefined layer 'foo' is encountered in an C or C layer +specification then C code performs the equivalent of: + + use PerlIO 'foo'; + +The perl code in PerlIO.pm then attempts to locate a layer by doing + + require PerlIO::foo; + +Otherwise the C package is a place holder for additional PerLIO related +functions. + + +=cut + +