diff options
author | Elizabeth Mattijsen <liz@dijkmat.nl> | 2002-07-10 23:13:52 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-10 20:24:47 +0000 |
commit | 385e1f9fd66a9146b7463c05d27e5028541ba2f1 (patch) | |
tree | 917b8d02fa529fb5ebe85b2543755d2843a4a3a0 /pod/perliol.pod | |
parent | 415c47386cbaaeba799eb4450916189f62200e8b (diff) | |
download | perl-385e1f9fd66a9146b7463c05d27e5028541ba2f1.tar.gz |
[DOC PATCH] some doc nits after 17463
Message-Id: <4.2.0.58.20020710211105.032546d0@mickey.dijkmat.nl>
p4raw-id: //depot/perl@17470
Diffstat (limited to 'pod/perliol.pod')
-rw-r--r-- | pod/perliol.pod | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pod/perliol.pod b/pod/perliol.pod index 08ea7c6d61..6a40570271 100644 --- a/pod/perliol.pod +++ b/pod/perliol.pod @@ -782,23 +782,27 @@ called thus: open( $fh, "<:encoding(iso-8859-7)", $pathname ); -=item ":Scalar" +=item ":scalar" Provides support for reading data from and writing data to a scalar. - open( $fh, ":Scalar", \$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<seek>, and determined via C<tell>. -=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 PerlIO::via::StripHTML; - open( my $fh, ">:Via(StripHTML)", "index.html" ); + open( my $fh, "<:via(StripHTML)", "index.html" ); See L<PerlIO::via> for details. |