Ninth Prince has asked for the wisdom of the Perl Monks concerning the following question:
I'm on a MacBook Pro running Mac OS X 10.5. I created a file using WORD for Mac and saved it as as a text file (.txt). The file is just five lines of two-digit numbers. I then try to read the file into an array. What I get is an array with 1 element. If I print the 1 element it looks like my file - 5 lines of two-digit numbers.
When I create the data file using TextEdit (which comes installed on the Mac) and then read the file I get an array with 5 elements.
Can someone help me understand what's going on here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
by ikegami (Patriarch) on Sep 25, 2008 at 20:18 UTC | |
by Anonymous Monk on Sep 26, 2008 at 09:54 UTC | |
by ikegami (Patriarch) on Sep 26, 2008 at 09:56 UTC | |
|
Re: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
by broomduster (Priest) on Sep 25, 2008 at 23:57 UTC | |
|
Re: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
by philcrow (Priest) on Sep 25, 2008 at 19:34 UTC | |
|
Re: End of line issues when using Mac OS X 10.5 and Windows (for Mac) products
by jethro (Monsignor) on Sep 25, 2008 at 20:06 UTC |