Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Parse csv file line by line

by jaredor (Deacon)
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 "myscript.pl") in the current working directory is to prefix it with "./" when you call it, i.e., "./myscript.pl".

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.

HTH


Comment on Re: Parse csv file line by line

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2014-09-19 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (143 votes), past polls