I've experimented with "Perlscript" on a web page under Microsoft's ASP system (Photo Server) with some success and some issues.

Ideally, this requires a central database. I've tinkered with using ADO via Perl's OLE mechanism, as well as using the DBI:: module under both ADO and ODBC backends.

I like the DBI interface a lot better, probably because it's native Perl in nature. However, I don't see a way to find and update something. It's great for looking up, and for adding whole rows, but how do I modify something? It seems like it would be possible if the database engine had an SQL extension command for that, but Access doesn't.

A big deal in this application is translating between 6-character codes and file names. In a regular perl script, this is trivial—just use a hash. But for the photos and thumbnails, each GET runs the script from scratch and does one such lookup. Populating a hash and holding it between calls would be great, but it looks like ASP and CGI just don't do this normally. So maybe the ASP page can ask a background program to do this? But communicating with such a program also seems like more overhead, and just using the general database would be simpler.

Any thoughts would be appreciated.

—John


In reply to approaching a database solution by John M. Dlugosz

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.