Since I don't know what you're really trying to do, the following mey not be appropriate, but here goes:

  1. Have you considered writing a DBI subclass ? I've written one (DBIx::Chart); it can be a challenge in some ways but may a better approach cuz...

  2. are you aware that DBI uses tied blessed hashes ? That may be an issue for your efforts...esp. when DESTROY()'s unexpectedly occur multiple times.

  3. I've also written something akin to subclassing (DBIx::Threaded) that actually does implement instances of every little handle method (cuz it turned out I couldn't do a real subclass); you might find it useful to cut/paste from it if AUTOLOAD doesn't meet your needs.

In reply to Re: Using AUTOLOAD to create class methods by renodino
in thread Using AUTOLOAD to create class methods by radiantmatrix

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.