Your program flow looks sane, and I cannot tell what is or would be the problem without seeing at least the error message you get. Better would be to also post the lines that cause the error.
You already use error_diag () as it should, but you might consider changing the initiator to new ({ binary => 1, auto_diag => 1 }).
What I also wonder, is why you use the -w flag on the hashbang line and have disabled use strict; and use warnings;.
In reply to Re: Text::CSV_XS read from line X
by Tux
in thread Text::CSV_XS read file from line X
by tw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |