On Wed, 27 Aug 2003 14:48:25 +0200, Peter J. Holzer wrote: Hi Peter
>> my($s) = "Data\n\r"; >> > > Erm, that should be "Data\r\n", at least on MS-DOS/Windows and all > line-oriented Internet protocols I'm familiar with (telnet, smtp, > nntp, http, imap, ...). Nope. It should be \n\r as stated. I knew someone would fall for that :-). I'm trying to show you a situation which you might encounter - I have - and which simplistic code won't handle. The real question is: What, exactly, is the situation the code is trying to handle? -- Cheers Ron Savage, [EMAIL PROTECTED] on 28/08/2003 http://savage.net.au/index.html