Thanks for the suggestions.

The direction i was going with the check was so that there could be different methods in the table that handle the different types of call (or all of them).

The eventual aim of this code is to have a client tool which talks directly to the database to modify the code, in a similar manner to vignette story server (but with perl instead of TCL).

At the moment the working code lets you store objects in the database, (that at the moment can be html, data (using Data::Dumper) and straight perl code. You can then write various subs that act upon the different types of object, such as the edit sub, which lets you edit (by means of a form at the moment) the object. The sub then passes the result of the form back to itself.

At the moment this is fairly slow, but I think that after it's implemented with mod_perl, I can use caching (and possible storage of byte-code) to reduce the database calls and the number of eval's needed in a typical.

The eventual aim of this is to allow the rapid development of dynamic sites.

Thanks for your comments.

Stephen


In reply to Re: AUTOLOAD detecting the type of method call. by metcals1
in thread AUTOLOAD detecting the type of method call. by metcals1

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.