in reply to Re: Read the csv file to a hash....
in thread Read the csv file to a hash....
the script should read that and parse it, so it gets the column names from the .csv file rather than hardcoding Name and Comment.<$fh>; # Drop column names on the floor
Apart from that, that works very nicely, and Text::CSV_XS is much more robust than my //g approach above.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Read the csv file to a hash....
by snopal (Pilgrim) on Jul 06, 2007 at 16:28 UTC |