in reply to Re^11: How do I display only matches
in thread (SOLVED) How do I display only matches
Note that on *nix, the "default text I/O layer" is probably :raw and :crlf is not used unless requested
A bit of a nitpick, from PerlIO:
:raw
... The implementation of :raw is as a pseudo-layer which when "pushed" pops itself and then any layers which do not declare themselves as suitable for binary data.
The defaults on 5.28:
$ perl -wMstrict -MData::Dump -e "dd PerlIO::get_layers(STDOUT)" ("unix", "perlio") C:\>perl -wMstrict -MData::Dump -e "dd PerlIO::get_layers(STDOUT)" ("unix", "crlf")
Update: There appears to be a a bug in PerlIO::get_layers() that causes the :crlf layer to always be reported on Windows, even after a binmode. (But the PerlIO documentation does confirm the above defaults.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: How do I display only matches (updated)
by jcb (Parson) on Sep 28, 2019 at 21:34 UTC | |
by Anonymous Monk on Sep 30, 2019 at 03:50 UTC | |
by Anonymous Monk on Sep 29, 2019 at 04:04 UTC | |
by soonix (Chancellor) on Sep 30, 2019 at 06:55 UTC | |
by jcb (Parson) on Oct 01, 2019 at 23:57 UTC | |
by haukex (Archbishop) on Oct 02, 2019 at 08:03 UTC | |
by jcb (Parson) on Oct 02, 2019 at 23:31 UTC | |
|