Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: perl cgi and flat textfile

by trantor (Chaplain)
on Dec 07, 2001 at 16:29 UTC ( #130182=note: print w/replies, xml ) Need Help??

in reply to perl cgi and flat textfile

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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130182]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2023-11-29 13:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found