last unless @$cols_aref;
getline() returns an empty arrayref when it runs out of lines in the file so you need to check for an arrayref with no elements.
In reply to Re: Concerning Text::CSV_XS getline in while loop
by jZed
in thread Concerning Text::CSV_XS getline in while loop
by freddo411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |