diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-16 14:57:47 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-16 14:57:47 +0000 |
commit | 79d9a4d753ef0c0dd9ae193f48a2f22228f03b23 (patch) | |
tree | 4a0a0d8eaebc79719cb0b0c5407426c9612a5b12 /lib/PerlIO.pm | |
parent | 7c91f47780c6b4923bae37d60b9019a6a770cdf2 (diff) | |
download | perl-79d9a4d753ef0c0dd9ae193f48a2f22228f03b23.tar.gz |
Try to get the layers.t working also for dosish platforms.
p4raw-id: //depot/perl@19239
Diffstat (limited to 'lib/PerlIO.pm')
-rw-r--r-- | lib/PerlIO.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index 61a748aa05..678a79dd2c 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -233,7 +233,23 @@ The following returns the B<names> of the PerlIO layers on a filehandle. The layers are returned in the order an open() or binmode() call would use them. Note that the stack begins (normally) from C<stdio> or from C<perlio>. Under C<stdio> the platform specific low-level I/O (like -C<unix>) is not part of the stack, but under C<perlio> it is. +C<unix>) is not part of the stack, but under C<perlio> (and the +experimental C<mmap>) it is. + +In platforms of DOS progeny (Win32 being the most prominent) the +lowest level layers are C<unix crlf>, meaning that Perl first uses the +UNIX-style low-level fd layer, and then on top of that a layer that +handles the CRLF translation. + +The following table summarizes the default layers on UNIX-like and +DOS-like platforms and depending on the setting of the C<$ENV{PERLIO}>: + + PERLIO UNIX-like DOS-like + + none stdio unix crlf + stdio stdio stdio + perlio unix perlio unix perlio + mmap unix mmap unix mmap By default the layers from the input side of the filehandle is returned, to get the output side use the optional C<output> argument: |