in reply to Class::CSV : How to write to CSV file?

According to the documentation (from the link you provide) new() doesn't accept the filename option.

The other Class::CSV Constructor, parse(), does accept this option. This is probably what you need.

-- Ken