Nkuvu's user image
User since: Dec 06, 2002 at 19:46 UTC
Last here: Jan 03, 2013 at 03:19 UTC (1 year ago)
Experience: 5003
Level: Priest (14)
Writeups: 484
Location:Tucson
User's localtime: Apr 16, 2014 at 09:39 MST
Scratchpad: View
For this user:Search nodes

Note the silly hat in accordance with PerlMonks Silly Hat Week. I know, the week's up. But I like the hat.

Eee, line end-y goodness:

Unix to DOS: perl -i -pe 's/\012/\015\012/g' unix-file DOS (Mac? I'm so confused) to Unix: perl -i -pe 's/\015\012/\012/g' mac-file
[download]

planetscape pointed to this nice reference page on the line endings (including a C++ utility file), ending my confusion.

Some simple links:

Just went searching for this all over, and finally figured it out: The DOS record separator can be printed with chr(0x1E) which makes a ▲ character (that should be a triangle, useful for delimiting variables in print statements used for debugging). I saw it here on PM somewhere recently, but can't find it now... oh well, I figured it out.

My XP chart

-----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d-(++) !s !a C++++ UBL+++ P+++ L+ E+ W+++ N !o K- w-- O- M+ V- PS PE Y+ PGP !tv !t !5 !X R* b+ DI++ D G e++ h+ r* z- ------END GEEK CODE BLOCK------
[download]