in reply to File lines being treated as one.
It's not clear what your problem is actually. However an important thing you need to know is that Unix and Windows use different line end conventions. Normally Perl takes care of the convention for the current platform and you needn't worry about it. However if you are dealing with a file from a different platform then the differences can be important.
Unix uses a line feed character (\n) as a line end indicator, Windows uses a carriage return line feed pair (\r\n) and the Mac uses a carriage return character (\r).
It's not clear from your description just what your problem is, but you could try stripping \r characters from your file and see if that fixes the problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File lines being treated as one.
by minixman (Beadle) on Mar 03, 2006 at 09:48 UTC | |
by GrandFather (Saint) on Mar 03, 2006 at 10:01 UTC | |
by minixman (Beadle) on Mar 03, 2006 at 10:03 UTC | |
by idle (Friar) on Mar 03, 2006 at 11:48 UTC |