in reply to Re^12: How do I display only matches (updated)
in thread (SOLVED) How do I display only matches
When using Perl's default I/O layer, print "\n" will emit <LF> on Unix and <CR><LF> on Windows.
Yes, you're just repeating back to me what I said several times now.
When reading a text line (Unix or Windows), the <CR> will be deleted, if it exists.
For *NIX that is once again wrong.
$ hexdump -C test.txt 00000000 46 6f 6f 0d 0a |Foo..| $ perl -wMstrict -MData::Dump -e 'dd <>' test.txt "Foo\r\n"
Update: When using "standard default I/O methods"
But that's not the only thing this discussion iswas about. It's also about you insisting that (essentially) $ matches before \r, insisting that (essentially) "\n" eq "\r\n" and that somehow all network communication magically uses CRLF, or stuff like the above. Sorry, but all the evidence appears to point to a fundamental misunderstanding of the topic.
That is not completely correct.
Are you just trolling now? You clearly still haven't studied the subject matter enough, I'm not sure if you're even reading my posts, and I'm tired of repeating myself and running tests that you could be running, so for now, I'm out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: How do I display only matches
by Marshall (Canon) on Sep 28, 2019 at 08:37 UTC |