http://www.perlmonks.org?node_id=427140


in reply to Newlines: reading files that were created on other platforms

Unix variants support the file commamd to determine the file type . Don't know if there is a similar Windows command, but probably is... If so, .. can you simply test input files to determine the file type, and adjust what the input line seperator is for that file ??
  • Comment on Re: Newlines: reading files that were created on other platforms