diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-09-23 06:16:14 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-09-23 06:21:22 -0700 |
commit | c0fd9d21fa8befdee8616b7b28eccadc9d2d938d (patch) | |
tree | a13706ddabe465488cf379aed711478c0fb958a3 /lib | |
parent | 4cc3976697bb71e4acaa99a5cd69aee0159bbb90 (diff) | |
download | perl-c0fd9d21fa8befdee8616b7b28eccadc9d2d938d.tar.gz |
Document open fh, "<:"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/open.pm b/lib/open.pm index d3f2d1bac8..fd22e1b9e7 100644 --- a/lib/open.pm +++ b/lib/open.pm @@ -1,7 +1,7 @@ package open; use warnings; -our $VERSION = '1.09'; +our $VERSION = '1.10'; require 5.008001; # for PerlIO::get_layers() @@ -213,7 +213,9 @@ many encodings have several aliases. See L<Encode::Supported> for details and the list of supported locales. When open() is given an explicit list of layers (with the three-arg -syntax), they override the list declared using this pragma. +syntax), they override the list declared using this pragma. open() can +also be given a single colon (:) for a layer name, to override this pragma +and use the default (C<:raw> on Unix, C<:crlf> on Windows). The C<:std> subpragma on its own has no effect, but if combined with the C<:utf8> or C<:encoding> subpragmas, it converts the standard |