open (FILE, '>>crmpicco.csv') or die "Cannot open file 'crmpicco.csv'\n";
# write to file
print FILE "$csvstr\n";
does anyone know of a way to empty the file's contents before I write the csvstr to it? i dont want to append to what is already there.