On Sun, May 16, 2010 at 3:21 PM, David Golden <xdaveg@gmail.com> wrote: > Strangely: > > C:\david\tmp>perl -MPerlIO -wE "binmode STDOUT; say for > PerlIO::get_layers(STDOUT)" > unix > crlf > > But further investigation with get_layers() and detail => 1 reveals > that crlf just has different flags set depending on whether binmode > (raw) is called on STDOUT or not. > Yeah, I've also been bitten by this confusing behavior. Unfortunately, those flags aren't available from Perl, only XS (unless I've missed something). I've been planning to write a module to query filehandles for such properties. It would be nice if the core exposed those flags, it feels like a better place to me. LeonThread Previous | Thread Next