I tried a filter option to new filter => sub { local $_ = shift; s/\s+$/\015\012/; $_ } and local $\ = "\015\012";package MyXSV; use base 'Text::xSV'; sub format_row { my $csv = shift; my $row = $csv->SUPER::format_row(@_); $row =~ s/\n$/\015\012/; $row; } 1; ... while ( $res->fetch ) { $csv->print_row( $city_id, $alias_id, $alias ); }
In reply to set lineendings in Text::xSV by borisz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |