in reply to Creating Unix Friendly files in win32
But if this was your only problem, it wouldn't prevent you from looping over the file - all what would happen is that your lines end with carriage return/line feed, instead of just a linefeed. Setting $/ appropriately when reading the file, and chomping the lines would fix that.
Furthermore, the code you give to supposedly writes to the file doesn't even print logical newlines - so there can't be a line ending problem because you don't have newlines!
Or is not printing newlines the problem, and the Windows vs Unix just a red herring? If you view the file under Windows, is the file then ok? Can you loop through the file under Windows?
Something else that might happen is that one of the variables you write contains a line-feed - but without the code and the data, that's impossible to judge.
|
|---|