in reply to Parse csv file line by line
Perhaps there are some funky, non-printable characters in your text file. Comparing the output of your code and the code itself, print $line; has not produced anything either. Can you look at your file in a hex editor to see whether there are extra characters? Also, try to switch off buffering to see what happens ($|=1; at the beginning of your code.)
|
|---|