in reply to Re: Object in an object
in thread Object in an object

Thanks for the reply. I thought that that was the problem. As for the line of code you asked about; that was an attempt to determine if the object was being stored in the hash of the filter object or not. I was hoping to see the reference stored in the DB if it was being stored in the filter's hash. This experiment did not work, though. Nothing was stored in the DB for this line of code.

Replies are listed 'Best First'.
Re^3: Object in an object
by ikegami (Patriarch) on Oct 04, 2009 at 23:12 UTC

    If $inth->execute("2","tom"); fails, it'll throw an exception, so the "$dbha" code will never be reached. In other words, your debugging code is buggy. Change

    $inth->execute("2","tom");
    to
    eval { $inth->execute("2","tom"); };
    or change the order of your code.
Re^3: Object in an object
by ikegami (Patriarch) on Oct 04, 2009 at 23:09 UTC

    If $inth->execute("2","tom"); fails, it'll throw an exception, so the "$dbha" code will never be reached. In other words, your debugging code is buggy. Change

    $inth->execute("2","tom");
    to
    eval { $inth->execute("2","tom"); };
    or change the order of your code.