in reply to Using AUTOLOAD to create class methods

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.
  • Comment on Re: Using AUTOLOAD to create class methods