If your host is a UNIX-based server, then you can use the Berkely-style database that's inherent to the system. DBD::File is where you want to go, as referenced above.

Since you're just storing records in a flat table (I'm assuming you don't want a lot of tables - Database guys love them, but unless you're comfortable with DB normalization, I'd stick with a flat table. - http://www.devshed.com has a good lesson on database structure, but their website is broken ATM and I can't get you a direct link.

The other possibility is to just write all your fields to a delimited text file. Just append to the file every time the form is submitted, and then you can open your datafile up in a spreadsheet and sort to your heart's content.

Here's a tweakable example. I fully admit that this code can be optimized and it *will* have to be edited for your form. I'm doing this on purpose wo you learn how it works better. =)

use CGI; $outputString = param('formfield1') . "|" . param('formfield2'); open OUTPUTFILE, "filename.txt"; print OUTPUTFILE $outputString . "\n";
I'd also spit them out a second page saying thanks for filling out your 100-field form. One possible easy way is HTML::Template. Hope this helps.

UPDATE: Corrected bad CPAN Link


In reply to Yes... sort of. by khudgins
in thread Can Perl create its own searchable db? by Bismark

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.