> while (<FH>) {
> s/^M$//;
> # Process $_
> }
Cute psuedocode.
I don't like <CR><LF> at all, it makes me feel like I'm dealing with a
typewritter. But, giving multiple values to $/ seems more painful to me
that to just
tr/\r//d;
on any suspected M$ strings. I guess not always M$... the chess server I
have to deal with likes to spit out that trash, and it's unix based...
but of course this is covered by RFC 69.
what frightens me is the potential here to make things a lot worse. It's
bad enough I have to translate out the "carriage returns" by hand, but I
don't want to have to start worrying about when I need to add them back in
when I didn't want to take them out in the first place.
Paris Sinclair | 4a75737420416e6f74686572
[EMAIL PROTECTED] | 205065726c204861636b6572
www.sinclairinternetwork.com