in reply to handling different new line characters

If the program is to be used for files resident on a given platform – Windows, Macintosh, *ixen, etc. – chomp manages that transparently. If you need to deal with end-of-record markers over something like NFS, my technique would be to determine the EOR marker for the source machine and reset $/ appropriately for the machine on which the program is running.

emc

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

Albert Einstein
  • Comment on Re: handling different new line characters