in reply to Inserting CSV Into DB w/o CSV Modules
Can someone show me a generic or other way to load CSV files in my code that doesn't need Tie::Handle::CSV; or any other CSV module?
Not using a module is a bad idea. If you have shell access why not read A Guide to Installing Modules and do a local install? If you don't have shell access why not just pick a CSV module like Text::CSV which is pure perl, then just do this:
Now all you have to do is
use lib './LIB'; # assumes current working dir is cgi-bin use Text::CSV; # yada
If you don't like either of those worthy ideas then just rip the guts out of Text::CSV and stuff it in your code.
cheers
tachyon
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inserting CSV Into DB w/o CSV Modules
by matija (Priest) on Nov 23, 2004 at 07:26 UTC | |
Re^2: Inserting CSV Into DB w/o CSV Modules
by awohld (Hermit) on Nov 23, 2004 at 16:32 UTC | |
by tachyon (Chancellor) on Nov 24, 2004 at 00:21 UTC |