http://www.perlmonks.org?node_id=1001689


in reply to Regular Expressions - replacing newlines and carriage returns inside quotes

Try using Text::CSV to read the file in. If it's "well formed" CSV (if there is such a thing) then the CR and LF should be between quotes and be handled properly.