in reply to swapping PIPE for comma in CSV file

Why not this?
s/([0-9"]),([0-9"])/$1\|$2/g

Replies are listed 'Best First'.
Re^2: swapping PIPE for comma in CSV file
by pseudomonas (Monk) on Jun 26, 2007 at 15:12 UTC
    An embedded comma might sit between two numerals or at the beginning or end of the field next to the quotes.
      Somehow I knew it couldn't be that easy.