in reply to CGI and static data...

The quick and painless answer to this question is yes. You can use the Data::Dumper module to push out data an read it back in. Check the perldoc. If that is not to your liking, just push this stuff out to a series of text files and read it back in. Write your own access methods. Why did you even submit this question to perlmonks? You seem to be answering your question throughout the question.

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re (tilly) 2: CGI and static data...
by tilly (Archbishop) on Jul 20, 2001 at 18:53 UTC
    Data::Dumper, Storable and friends are not always the right answer. Yes, he knows that he can do it that way, but he would prefer not to for performance reasons.

    That is a perfectly legitimate question. Algorithmically it is really stupid to have to parse a potentially large data file when you only want one item out of it. While my gut response is to not worry about performance, that is something which can easily become a bottleneck, and it is good to have some knowledge of how to handle the situation if it does become a problem and you do not have a structure which is suited to an RDBMS.

    However your rudeness is another story entirely...