Your skill will accomplish what the force of many cannot |
|
PerlMonks |
No Control Mby ambs (Pilgrim) |
on Apr 08, 2005 at 18:58 UTC ( [id://446113]=CUFP: print w/replies, xml ) | Need Help?? |
There are a lot of different ways to encode file newlines. DOS uses "\r\n", Unix uses just "\n" and some Mac files use just "\r".
I normally want them Unix style, and created a simple script to solve this problem. It is really simple, but really useful. It works both for DOS and Mac files very well. Update: Sorry but the missing parenthesis are important.
Back to
Cool Uses for Perl
|
|