I am using activestate on a windows box ...the files I am parsing are Unix files...I tried this so far... open ( IN, "<$_[0]" )||die "Can't open DAT source file: $tempFile $!\n"; while (<IN>){s/\r/\n/g;@lines = <IN>;}# close (IN); foreach $line (@lines) {Thread Next