Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Code review, good 'ol CGI.

by DBX (Pilgrim)
on Jul 31, 2001 at 10:12 UTC ( [id://101079]=note: print w/replies, xml ) Need Help??


in reply to Code review, good 'ol CGI.

I may have missed it so forgive me, but I recommend you check out DBD::CSV. I use it for simple sites that require a csv database for several reasons.

First, it's scalable to a real DB incredibly easily because your code, except for one line in the connection routine is compatible with any DBD::*. So if you upgrade to mysql for example, you just move the data to the db, change how you connect and your code works.

Also, all your DB calls are in SQL, which is fairly standard especially for simple stuff and allows you not to worry about the order of the file or the fields, just make your query.

Finally, the DB can still be edited, uploaded or created by hand and work with your cgi scripts.

Again, I took a fairly quick glance at your code, so forgive me if I missed something, I just thought this might interest you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-25 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found