Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much


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://XML::Parser]
    • Jargon File Entries: [jargon://search terms]
    • Link titles: [|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?

What's my password?
Create A New User
[choroba]: sorry, typo. Works for me with 15 which is the default
[choroba]: Timestamps should work correctly now
[Tux]: I need 17 on both my boxes

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2017-09-19 20:18 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (228 votes). Check out past polls.