in reply to Passing DBH into sub

I believe that error means that the query string isn't getting fed to the prepare method correctly... where it says "<query string>" in your code snippet, what does it literally say in your script? Is it a literal string? A variable? I've encountered that error when I accidentally squashed the variable I was using to hold my query string.... I dunno; hope this helps.

Replies are listed 'Best First'.
Re: Re: Passing DBH into sub
by legLess (Hermit) on Jul 14, 2001 at 04:44 UTC
    Thanks for the reply, but read my post a little more carefully. The query string works perfectly if I use a different method to get the database handle.

    The error means that the database handle is undefined, not that the query string is munged somehow.
    --
    man with no legs, inc.

      While he may not have hit the answer you wanted, it's kind of impossible to find out what is wrong with your script just by looking at the post, I think. At least, from what I can tell, your problem is not that get_member function or anything... ergo, the problem must be in the rest of the code.

      My suggestion is to use perl -d to step through the suspicious areas...