Others have given you suggestions about creating the actual HTML tables. I'll just say that, if you have any control over the data itself, do yourself a giant favor and store it with the full date as the key. The way you have it with the year-month as the key, you will never have unique keys and any value of storing them in a DB_File (or any other hashed system) will be lost. If instead of having "2005-jan" as the key and "11-rented" as the value, have "2005-jan-11" as the key and "rented" as the value. That will give you unique keys and it will also eliminate the need to parse the serialized value. Even better, store the dates using numerical months as yyyy-mm-dd e.g. "2005-01-11" so you can order the dates properly. If you know SQL at all, you'd be best off using SQLite or MySQL or using DBD::DBM to keep using DB_File but with a DBI/SQL frontend.

In reply to Re: Creating HTML tables by jZed
in thread Creating HTML tables by Anonymous Monk

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.