Or since it's CSV data use Text::CSV_XS and let it bother with quoting and what not.
In reply to Re: Re: printing to a file by Fletch in thread printing to a file by dudley