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.



John
--
use Perl;
program
fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to