[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.