Brian, I don't mind help but I do not quite understand the double quote issue that your code corrects. The currently posted code above handles quotes within quotes.

Both the current script and your script seem to yield the same results on my test files.

I wasn't concerned with the nicety of using close since file handle "1" isn't used again and would be forced closed when Kix32 exits. Formally closing the file handle is better style but I do not believe it matters in this case.

I do like your use of the "&" to keep $Q and $R to either "0" or "1". This reduced the code requirement that my empty string or ASCII value approach required. You score some points. [Smile]

[ 05 June 2002, 02:32: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/