in reply to Concerning Text::CSV_XS getline in while loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Concerning Text::CSV_XS getline in while loop
by freddo411 (Chaplain) on Dec 21, 2004 at 22:45 UTC | |
|
Re^2: Concerning Text::CSV_XS getline in while loop
by Anonymous Monk on Feb 27, 2010 at 16:38 UTC | |
by Tux (Canon) on Feb 28, 2010 at 10:12 UTC |