In article <[EMAIL PROTECTED]>, "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> wrote: >On Jan 8, Yitzchak Scott-Thoennes said: > >>I prefer (at least sometimes) to see golf worked out interactively, on >>the list. > >I'm not sure I understand. Shall I show my code?
Yes. > -n $\=$/;$,=':';print/("[^"]*"|[^\s#]+)\s*(?:#.*)?/g Close. I said: "The surrounding quotes are themselves not part of the field", so the quotes should not get printed. Also, I said: "Fields are separated by 1 or more whitespace characters", so "x"x is one 4 character field, not two 1 character fields.