Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: How to set variable names using Text::CSV?by Marshall (Canon) |
on Oct 19, 2009 at 08:53 UTC ( [id://801951]=note: print w/replies, xml ) | Need Help?? |
I didn't follow all the details in this thread re Text::CVS, but your comment about DBD::CSV stands out as a good idea! I have a project with a CSV file that I am starting soon and plan to go with the DBI approach. I had played with this on Unix a while back and it seemed to work great The problem was that the CSV module for the DBI wasn't available on ActiveState and I couldn't use it for Windows based applications - so this idea went on back burner. That problem has evidently been solved with Perl 5.10 and current modules! If I'm right about this, using the DBI will allow me to write code that could be used with some other DB at some later time if necessary. Oh well, not directly applicable to the OP's problem at hand, but I thought that this DBI with CSV is now possible on Windows was worth a mention. A thought for other projects. The code looks like connecting to other underlying Databases:
Update:There is a thing that I've found out with using CSV files...I have some users who haven't written any code in their life, never seen an SQL or a Perl statement, but yet can do magic with modern spreadsheets! A lot of the old limits are gone like number of lines, and there are multiple pages, etc. Sometimes sending CSV spreadsheet data works to everyone's advantage. The users can sometimes do amazing stuff!
In Section
Seekers of Perl Wisdom
|
|