in reply to Re^4: Class::DBI error?
in thread Class::DBI error?

No, I think a simple 'if' should do the trick:
if( not $thread){ # Send a message to the user in some way... print"No record found for thread number: $id"; # Get out of the structure in some way... exit; }

Replies are listed 'Best First'.
Re^6: Class::DBI error?
by stonecolddevin (Parson) on Jun 10, 2005 at 12:16 UTC
    Ah, fantastic. It's still returning zeros however..
    meh.
      Ah, but that's good since you now know that you are getting a record back.

      Now you can start looking at the data. Try this:

      warn "Does thread have some data? " . $thread->author . "\n";
      Right after that 'if' check. Basically, start looking at the data to be sure $thread has what you think.