in reply to Poor Person's Database
For a cleaner, yet slow solution, check out DBD::CSV. This module allows you to use SQL with CSV files. Very handy if you don't have a database installed! It won't be terribly fast or robust, but certainly no worse than what you are currently faced with and if you have the option to convert to a real database later on, the conversion is a snap!
One of the interesting features about this is that it allows you to create and drop tables. Ordinarily, this is not a function supported by DBI as this is too database specific. However, since this function would be tedious to implement by hand with CSV files, this module handles it for you. Read through the documentation as there are some pitfalls there, but I suspect that they are much less serious than doing this by hand.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (Ovid) Re: Poor Person's Database
by voyager (Friar) on Jun 20, 2001 at 19:09 UTC |