http://www.perlmonks.org?node_id=898258


in reply to Replace characters of input stream on the fly

Could you not use something similar to the following?

my $csv = Text::CSV->new ({ eol => qq{\r}, }) or die "" . Text::CSV->error_diag ();

Hope that helps.