diff options
author | SADAHIRO Tomoyuki <BQW10602@nifty.com> | 2006-01-09 10:29:30 +0900 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-01-08 21:34:22 +0000 |
commit | 6d5e88a0347ef2c76da06c6ba6c6643e226cbccf (patch) | |
tree | 2d5ebc9486447c2275cb1263f3e7d3c6fa5cb06f /lib/open.pm | |
parent | 45ca242cdf7205ab2faece0a04436706d5439b0d (diff) | |
download | perl-6d5e88a0347ef2c76da06c6ba6c6643e226cbccf.tar.gz |
Re: [perl #38181] Default IO Layer is ignored in 3-argument open call
Message-Id: <20060109012103.F20A.BQW10602@nifty.com>
p4raw-id: //depot/perl@26739
Diffstat (limited to 'lib/open.pm')
-rw-r--r-- | lib/open.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/open.pm b/lib/open.pm index 24488e6716..c2eae57eb3 100644 --- a/lib/open.pm +++ b/lib/open.pm @@ -169,9 +169,8 @@ The C<open> pragma serves as one of the interfaces to declare default "layers" (also known as "disciplines") for all I/O. Any two-argument open(), readpipe() (aka qx//) and similar operators found within the lexical scope of this pragma will use the declared defaults. -Three-argument opens are not affected by this pragma since there you -(can) explicitly specify the layers and are supposed to know what you -are doing. +Even three-argument opens may be affected by this pragma +when they don't specify IO layers in MODE. With the C<IN> subpragma you can declare the default layers of input streams, and with the C<OUT> subpragma you can declare @@ -180,7 +179,7 @@ you can control both input and output streams simultaneously. If you have a legacy encoding, you can use the C<:encoding(...)> tag. -if you want to set your encoding layers based on your +If you want to set your encoding layers based on your locale environment variables, you can use the C<:locale> tag. For example: |