[CDBI] Re: cdbi objects evaluating as false
"Aaron Trevena" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
On 25/11/06, Aaron Trevena <[email protected]> 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. A. -- http://www.aarontrevena.co.uk LAMP System Integration, Development and Hosting