http://qs321.pair.com?node_id=234972


in reply to Parsing a comma delimited file

open(IN, "<c:\doclist.chr") or die "Couldn't open file, $!"; open(OUT, ">c:\doclist.txt") or die "Couldn't open file, $!";
When specifying pathnames use forward slashes '/' not backslashes '\', even on windows machines.

Perl will handle this for you.