Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Parse csv file line by line

by jaredor (Priest)
on May 06, 2013 at 14:42 UTC ( #1032310=note: print w/replies, xml ) Need Help??

in reply to Parse csv file line by line

Your results for a script not what others are getting running same script? Your results not changing when you change the script? Then one thing you can do is check to make sure that the script you think is running is actually the script you are running, e.g., put a print statement at the top of the script that you know has to show up the next time you run the script. If you are on Linux, the quick way to ensure you are running the script (let's call it "") in the current working directory is to prefix it with "./" when you call it, i.e., "./".

Another thing to check is that if you are working in a Linux environment with a Windows generated text file, that you use "dos2unix" on the file before manipulating it. This debugging check is related to the "non-printing character" comments already made above.

Your dialog with the other commentors made me think the above may be worth mentioning.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-01-22 04:14 GMT
Find Nodes?
    Voting Booth?