Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to Re: Code review, good 'ol CGI. by DBX
in thread Code review, good 'ol CGI. by meonkeys

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found