in reply to Bad Text::CSV_XS parameter

It sounds like your input file isn't what you think it is or what you showed here; try hexdump -C ddd.CSV or od -tx1c ddd.CSV. Also, don't use the ->parse method to read a file, use $csv->getline($fh).

Replies are listed 'Best First'.
Re^2: Bad Text::CSV_XS parameter
by pcouderc (Monk) on Apr 24, 2020 at 13:27 UTC
    My file is:
    hexdump -C ddd.CSV 00000000 ef bb bf 22 30 31 30 31 32 30 31 39 22 2c 22 31 |..."01012 +019","1| 00000010 38 31 36 22 0a 0a 0a |816"...| 00000017

      If you have a BOM you have to deal with it: BOM

        Thank you, you got it !
        if I remove the BOM with vim, it works...

        Thank you very much, even if I cannot use "detect_bom => 1" in this case as there is no header...

          A reply falls below the community's threshold of quality. You may see it by logging in.