Post your script and a sample of the CSV file (use CODE) tags when posting the code.

We'll have a much better idea of what the problem might be if we can see what you've got.