in reply to Split line with extra delim

Text::CSV_XS

Is all you need and more!

jdtoronto

Replies are listed 'Best First'.
Re^2: Split line with extra delim
by ecuguru (Monk) on Aug 23, 2005 at 21:01 UTC
    There's always a lib. That'll do fine. Would be curious if people know a way to do this without the lib, but this does exactly what I need. Thanks!
      In nearly thirty five years of engineering I find that whilst wheels are wonderful things to invent that I could waste far too much time re-inventing all of the wheels I have had to deal with! I therefore subscribe to that wonderful programmers virtue - laziness - akin to the great engineering virtue of expediency.

      Sure you can do it yourself, and module source code is a great place to learn. The parse method in Text::CSV is simply elegant. But prior to starting to use the module back in 2000 I had maintained a bundle of my own code that kept running into problems - the module has never let me down.

      jdtoronto