in reply to Re^2: create separate output files based on the matched values
in thread create separate output files based on the matched values

I don't think that the line endings are a particular problem for the OP. The trick is generating the various output files.

However replacing the syswrite with:

my $fh = $files{$name}; print $fh "$data\n";

fixes the problem. What do you expect from a reply written before morning coffee :).


Perl is Huffman encoded by design.