http://qs321.pair.com?node_id=701693


in reply to Spaces Between Chars While Reading File

Using ".+" in a regular expression is generally going to lead to trouble.

Given the excel source and desired removal of quotes, it seems rather likely that you're reading from a CSV file. As such, you might consider using Text::CSV to save you from the complications of the format.

Alternatively, you might even consider reading from the excel file directly with Spreadsheet::ParseExcel, though I must admit that I've never used it on 2007.