in reply to Perl file open files from other OS

yep, you can do local $/='\n'; (that's the input record separator) and then reading in should be fine. Also for writing files, you can do local $\="\r\n"; (that's the output record separator)