in reply to Re: Concerning Text::CSV_XS getline in while loop
in thread Concerning Text::CSV_XS getline in while loop

Hi, I am having a simular problem, but the EOF is found if a non-ASCII character is found in the input string, like a German U or character of the same kind. Depending on the file it happens at the offending line. The input file has been produced by EXCEL and making a CSV-file from it on a Windows computer, while the PERL-script is running on a Linux machine. Kind regards, Bert Mengerink SPOORHOBBY
  • Comment on Re^2: Concerning Text::CSV_XS getline in while loop

Replies are listed 'Best First'.
Re^3: Concerning Text::CSV_XS getline in while loop
by Tux (Canon) on Feb 28, 2010 at 10:12 UTC

    My bet would be you forgot to read the documentation, and did not pass binary => 1 in the constructor:

    my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 1 });

    Enjoy, Have FUN! H.Merijn