Since I don't know what you're
really trying to do, the
following mey not be appropriate, but here goes:
- 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...
- 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.
- 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.