Try adding:
$csv->eol ("\x0d\x0a");
after the my $csv = Text::CSV_XS->new ... statement. Probably Excel is generating Windows line ends even on a Mac and Perl is expecting either *nix of (legacy) Mac line endings.
In reply to Re^3: Export CSV v2
by GrandFather
in thread Export CSV v2
by Perl3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |