Perl-Sensitive Sunglasses | |
PerlMonks |
Re^4: \r\n at end of line (preserve \r?)by flexvault (Monsignor) |
on Apr 21, 2011 at 13:24 UTC ( [id://900606]=note: print w/replies, xml ) | Need Help?? |
I expect tools to write new text files using the default newline style of the tool's platform Just to update your thoughts on your comment and the why of my question. We have an environment where a *nix share server has stored templates that are used by mainframes, windows machines, macs, linux, etc. We have our own editor (originally written in C, but now re-written in perl) that is used to edit these files. Maintaining the integrity of the line endings is critical. I need to benchmark and verify all line-endings work correctly, but your solution is clean. Thank you "Well done is better than well said." - Benjamin Franklin
In Section
Seekers of Perl Wisdom
|
|