in reply to parsing CSV file with embedded commas (fortunately, fixed-width) - is unpack the solution?

I work with CSV files a LOT. I'd go with Text::CSV or Text::xSV personally.

I don't know where the data is coming from, but it should be getting exported correctly in the first place. Even if you hack a solution with split or unpack, it's probably only a matter of time before a change in data causes your workaround to start failing again.

-Lee

"To be civilized is to deny one's nature."

  • Comment on Re: parsing CSV file with embedded commas (fortunately, fixed-width) - is unpack the solution?