[CDBI] Re: cdbi objects evaluating as false

Aaron Trevena aaron.trevena at gmail.com
Sat Nov 25 17:30:13 GMT 2006

On 25/11/06, Aaron Trevena <aaron.trevena at gmail.com> wrote:
> I'm finding that when I do :
> while (my $object = $iterator->next) {
> ..
> }
> .. the loop never happens because 'my $object = $iterator->next' seems
> to be false.

I've ruled it stringification - it strings to the object classname,
but some fields are valued 0, and I'm wondering if for some reason the
statement is false because the last field in the hash of the object is
0 or undefined.

Seems odd.


LAMP System Integration, Development and Hosting

More information about the ClassDBI mailing list