Trim the spaces:
s/^\s+//, s/\s+\z// for $check_no, $amount;
By the way, types is only used when parsing, so it does absolutely nothing in your program.
In reply to Re^3: Text::CSV_XS; Type Method
by ikegami
in thread Text::CSV_XS; Type Method
by drodinthe559
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |