in reply to CGI and static data...

well, i haven't worked with Data::Dumper, but it looks promising...

i was thinking you should look at XML... there are modules to do most of the work, it is very standard(or rather is a standard), it will handle arbitrary data sets quite well, and it will handle changing the structure as well.
Xan.

Replies are listed 'Best First'.
Re: Re: CGI and static data...
by paulbort (Hermit) on Jul 20, 2001 at 19:15 UTC
    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.