Hendrik Maryns wrote:
Kevin Horton schreef:
What kind of line endings does the file have? If I recall correctly, I ran into a problem where perl did not recognize classical Macintosh line endings as ending a line. It thought the whole file was one line, until I converted the line endings to Unix format.
That must be the problem! I work on WinXP (for the moment). The file is generated by ChatZilla, the IRC chat program part of the Mozilla suite. I don't know what kind of line endings it uses, how can I see this?
According to RFC 1459:
IRC messages are always lines of characters terminated with a CR-LF (Carriage Return - Line Feed) pair, and these messages shall not exceed 512 characters in length, counting all characters including the trailing CR-LF. Thus, there are 510 characters maximum allowed for the command and its parameters. There is no provision for continuation message lines. See section 7 for more details about current implementations.
However when you save that data to a file the line endings are determined by
the application that saves that data and to some extent by the operating
system.
I do understand, but is there a trick in Windows to get to see which chars are used as newline chars in a particular file, i.e. to show ASCII chars?
Thanks for your help on splice and -i, I understand now!
H.
-- Hendrik Maryns
Interesting websites: www.lieverleven.be (I cooperate) www.fuckforforest.com For the frustrated, though engaged fellow-men www.eu04.com European Referendum Campaign aouw.org The Art Of Urban Warfare
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>