Well, sorry :-) I thought the lack of \n was kinda obvious.
So if thats the case, I'd say your "$1\n" really should be $1,"\n" on the grounds of efficiency. 25% faster.
D'oh, I must admit your solution is better than mine. :-)
Comment on RE: RE: Re: Parsing web pages (sort of)