in reply to Removing Newline Characters from File Data (chomp not working)

Was the CSV file created on the same system?
Could be that you need to persuade chomp to use the line separator of the other system? This can be achieved directly by setting the input line separator to that of the source system, eg if source is Windows (\r\n) and parsing is done on Unix (\n)
... while (<$FH>){ { local $/="\r\n"; chomp; } ... } ...
note that local is in it's own block so as not to mess with anything else

Replies are listed 'Best First'.
Re^2: Removing Newline Characters from File Data (chomp not working)
by mlux (Initiate) on Aug 27, 2009 at 16:33 UTC
    That was it, thanks.