![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: perl cgi and flat textfileby trantor (Chaplain) |
on Dec 07, 2001 at 16:29 UTC ( #130182=note: print w/replies, xml ) | Need Help?? |
I agree with the previous posts, and I just wanted to point out something more. When dealing with CGIs and text file databases, locking is highly recommended, because of the nature of HTTP requests themselves. You should also consider users pressing submitting many times or reloading the page, they both impact negatively your flat file DB in case operations that change data are involved. I personally like to use text files when it makes sense, e.g. when data needs to be implicitly human readable or when dealing with pre-existing databases and file formats. In other situations I tend to prefer DBM files, woinderfully supported by perl (e.g. MLDBM) and interoperable as well, or the DBI interface, which can operate on text files when/if needed, as already pointed out. -- TMTOWTDI
In Section
Seekers of Perl Wisdom
|
|