Hi
BillKSmith,
I can see that there is a need for a FAQ on line endings.
I'd be willing to cooperate with you on such a project?
There are various cases involving reading a Unix file on Windows,
reading Windows file on Unix.
Other demos should include that <CR><LF> as standard network
protocol.
I have never used binmode to account for \r (<CR>). there are other ways.
Any combine our ways together to make a FAQ?
Update: I see that there are some detailed explanations of :CRLF layer, etc.
A simple "how to" for reading and writing Mac,Unix,PC files on any of the platforms could be
helpful.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.