JHG has asked for the wisdom of the Perl Monks concerning the following question:
I wrote this in WIN to read a multiline .txt file line by line
<code while((INFILE)) {print $_;} >Which is straightforward and NOT in @List context!
In WIN it worked perfectly for years, when I copy&paste a word.doc or .docx text into a simple txt file to use as INFILE. But when I do the same in MAC, that is copying a word.docx text to paste in a simple txt file, the above code churns out a single line whatever the lenght of the original text! I added a linecount in both system: in WIN it counts the lines correctly wether in MAC the result is always 1 line only.
I would very much appreciate a solution to this problem, since I have hundreds of texts to churn with my routine that wraps HTML tag around each line.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Same code different result in WIN and MAC, help please
by toolic (Bishop) on Mar 11, 2012 at 17:30 UTC | |
|
Re: Same code different result in WIN and MAC, help please
by bitingduck (Deacon) on Mar 11, 2012 at 18:05 UTC | |
|
Re: Same code different result in WIN and MAC, help please
by tangent (Parson) on Mar 11, 2012 at 17:59 UTC | |
|
Re: Same code different result in WIN and MAC, help please
by ikegami (Patriarch) on Mar 12, 2012 at 19:04 UTC |