On 2/10/06, Rick Triplett <[EMAIL PROTECTED]> wrote: snip > My perplexities are these: Why did TextWrangler show \r for the line > endings after I had save them for Unix (\n)? And, why did Perl have > difficulty with the line endings in the first place? Perl is supposed > to be sensitive to the operating system it is running on and "do the > right thing." snip
I would suggest looking at the value of $/. It is the record separater (aka end of line character(s)). I would also check that the file is written the way you think it is. Mac OS X is funny because it is both a BSD varient and a Mac OS varient. I have not idea what it considers the default end of line character(s) to be. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>