Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: perl cgi and flat textfile

by trantor (Chaplain)
on Dec 07, 2001 at 16:29 UTC ( [id://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.

-- TMTOWTDI

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found