in reply to Question on loops and variables
Without your data I can only guess that split is giving you an empty $fields[5] from one of the data rows.
There are lots of pitfalls in parsing CSV, which is why you'll have numerous responses telling you to use one of the many CSV modules on CPAN. My recommendation is Text::CSV_XS.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question on loops and variables
by bogonspace (Initiate) on Oct 12, 2011 at 21:57 UTC | |
by jethro (Monsignor) on Oct 12, 2011 at 22:32 UTC | |
by AnomalousMonk (Archbishop) on Oct 13, 2011 at 00:06 UTC |