btrott and chromatic both have great suggestions.

As you are starting to look at storing structured data, there some techniques you shoud consider:

If you have access to a database, you should use it. Perl has a robust DBI module that provides interfaces to many SQL databases (it even has drivers that allow you to use flat files as if they were SQL databases). You may also want to check out the FreezeThaw, Data::Dumper and Storable modules. All of those modules provide ways to taking an in-memory data-structure and extracting it so it can be stored (on disk or otherwise) for later retrieval. If you have access to Advanced Perl Programming it has an excellent chapter on data-persistance that should really be in-line with what you're working on.


In reply to Re: Question about message board making by lhoward
in thread Question about message board making by SYbeginner

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.