X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperliol.pod;h=6a40570271f90e6c611ecca95092a19879b5ad91;hb=a5c16299e4688e58a2a7b276af191a614da68f07;hp=604da506ab56b8082827f018bbde18e64537eff4;hpb=a489db4dc8d60b4752ca46ab21deea7356402722;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perliol.pod b/pod/perliol.pod index 604da50..6a40570 100644 --- a/pod/perliol.pod +++ b/pod/perliol.pod @@ -324,7 +324,7 @@ to change during one "get".) =over 4 -=item size +=item fsize Size_t fsize; @@ -780,27 +780,31 @@ makes this layer available, although F "knows" where to find it. It is an example of a layer which takes an argument as it is called thus: - open($fh,"<:encoding(iso-8859-7)",$pathname) + open( $fh, "<:encoding(iso-8859-7)", $pathname ); -=item ":Scalar" +=item ":scalar" -Provides support for +Provides support for reading data from and writing data to a scalar. - open($fh,"...",\$scalar) + open( $fh, "+<:scalar", \$scalar ); When a handle is so opened, then reads get bytes from the string value of I<$scalar>, and writes change the value. In both cases the position in I<$scalar> starts as zero but can be altered via C, and determined via C. -=item ":Via" +Please note that this layer is implied when calling open() thus: + + open( $fh, "+<", \$scalar ); + +=item ":via" Provided to allow layers to be implemented as Perl code. For instance: - use MIME::QuotedPrint; - open(my $fh, ">Via(MIME::QuotedPrint)", "qp"); + use PerlIO::via::StripHTML; + open( my $fh, "<:via(StripHTML)", "index.html" ); -See L for details. +See L for details. =back @@ -867,6 +871,3 @@ a person who is not a PerlIO guru (yet). =back =cut - - -