Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Nkuvu

by Nkuvu (Priest)
on Dec 06, 2002 at 19:46 UTC ( #218135=user: print w/ replies, xml ) Need Help??

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

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

Some simple links:

  • Chatterbox history
  • Markov Nkuvu
  • Linking:
    • By Title: [nodetitle]
    • By Node ID: [id://nodeid]
    • A Monk's Scratch Pad: [pad://monk name]
    • Module searches at cpan.org: [cpan://XML::Parser]
    • Jargon File Entries: [jargon://search terms]
    • Link titles: [http://perlmonks.org|The Perl Monastery]
  • MS Visual C++ Compiler

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------

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-09-21 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls