>On Tue, Jan 08, 2002 at 11:50:44AM -0800, Yitzchak Scott-Thoennes wrote: > -n $,=':';$\=$/;print grep$_,/\G\s*(?:"([^"]*)"(?:\s|$)|([^\s#]+))/g; > (but what a poor score it gives... :/ )
It gets worse: While whitespace separates fields, the last field could have a comment next. And "" is an empty field. But I think the \G is unnecessary. >-- >I must not fear. Fear is the mind-killer that brings total obliteration. >I will face my fear. I will permit it to pass over me and through me. And >when it is gone past I will turn the inner eye to see its path. Where the >fear has gone there will be nothing. Only I will remain. - Frank Herbert -- I met this guy, and he looked like he might have been a hat check clerk at an ice rink--which, in fact, he turned out to be. - Laurie Anderson
