Since your data on the CD will be static, I would use the following way :

Write a small, simplish JavaScript search engine, which has the image and search data hardcoded as arrays. The data part of the JavaScript lands in the search.html file in <script> tags, while the "search engine" is in a separate .js file. The database is statically created via a Perl script from your main database, this of course means that you will have to modify the build process for your CDrom and run the magic database creation Perl script before burning the stuff.

This solution would have the benefit that you can also create a static subindex (in HTML) where the images are listed after different criteria, and you essentially become platform independent (that is, as long as you don't use fancy CSS and/or fancy JavaScript).

The other solution would be to burn IndigoPerl and the built-in Apache server on the CD, but then your users would need to start the Apache server before they could access the CD - a suboptimal solution IMO.


In reply to You have static data (was: Re: Perl CGI on a CD?) by Corion
in thread Perl CGI on a CD? by dmckee

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.