Hi Carol,
Could you explain that to me? Windows applications use a different line break to Unix right? Alex went into it recently, with all this stuff about CTCR or something. (My knowledge of the inner workings of computers, whether it's Unix, Windows, or anything else, leaves a lot to be desired. It's like a car. I get in, it works, I'm happy...
The reason I ask is purely curiosity. When Dan asked the question, I wanted to check how the split function works on a line breaks before I opened me big gob. So I tested it. I created a file in Wordpad with three fruits, one per line. I opened it with Perl, made an array of the contents, wrote that array to a string with the line breaks intact, and then split the string on \n. Which worked perfectly...
So should it have? I seem to have a very forgiving machine when it comes to Perl stuff, it doesn't complain when I make boo-boo's and doesn't generate errors when people say they will. But my scripts also run perfectly on my Unix server.
It's about time the machine was nice to me anyway, with the amount of crashes I have to put up with. Damn Bill Gates and all his products and services!
adam