Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: newline substitution is removing text too

by rodion (Chaplain)
on Jan 21, 2007 at 12:17 UTC ( #595756=note: print w/replies, xml ) Need Help??

in reply to newline substitution is removing text too

It's suspicious that both deletions come at quotes (doubled double quotes in the the first instance, and single quotes in the second) combined with your mentioning CSV, which usually needs to do some quotes handling. Also, as graff did, I downloaded your code and example and I didn't see the problem (runing on a Win2000 box, perl v5.8.8).

Putting these together, I wonder if you might not be running the code you think you're running. If you totally rule that out, then the presence of a non-visible character, other than "\r", maybe the culprit, as graff suggests in in his recomendation to use "od" or "xxd", or in some other way there's somethink going on that doesn't show up in the example text.

  • Comment on Re: newline substitution is removing text too

Replies are listed 'Best First'.
Re^2: newline substitution is removing text too
by Groxx (Novice) on Jan 21, 2007 at 17:36 UTC
    I made it print to a file (previously just to the terminal window), and it worked fine.

    So... know anything about how OSX's bash terminal handles large lines of text, and why it might be cutting that out?

    And thanks for the suggestions, I hadn't heard of those programs before.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://595756]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-09-24 16:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found