I was going to suggest XML also. The structure that comes to mind is along the lines of creating an XML file that describes the categories, and includes a directory name for each category. Then in each category directory, a file for each thing, possibly with an index XML file that lists all the things.
Depending on your comfort level with XML and your comfort level with plain text, you might find it easier to do the same thing with plain text.
You can pick different storage methods for each level (part) of the data structure, depending on what that data needs. (For example, you didn't specify how much data is associated with each category, so if it's just a name, there might be no need for a description of each category, just a set of directories, like /usr/data/Category1, /usr/data/Category2, etc.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.