in reply to Re^2: Errors from a simple Package
in thread Errors from a simple Package

If you are repeating your queries (and that's what I thought you were trying to do because it's the only reason I could think of to try to share statement handles), then prepare_cached would help. If you want all calls to connect to get the same database handle, then connect_cached might help.

And on another note, I have a suspicion that you do not Use strict and warnings, which you should be doing.

Replies are listed 'Best First'.
Re^4: Errors from a simple Package
by tel2 (Pilgrim) on Mar 18, 2011 at 21:13 UTC
    Thanks runrig.