This is similar to my last question but instead of input it is output. I am using:
my $fh = new IO::File "> output.csv"; foreach my $hash ( %hashed){ if($hashed{$hash}){ print "$hash has data $hashed{ $hash }->[0]\n"; $status = $csv->print($fh, $hashed{ $hash }); } }
This prints everything out to a csv file my problem is it prints everything out on 1 line instead of an individual line for each key of the hash. My has is a hash of array refs where the keys are unique id's from the array refs they point at. So, my question is am I just not using the print function correctly or is it something to do with my hash?
In reply to printing CSV to file? by Thargor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |