Re: Undef value trouble

2005-02-19 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wiggins d'Anconia) writes: >Lawrence Statton wrote: >> while ( defined ( my ($pid) = $sth->fetchrow_array ) ) { >0 in a scalar variable is NOT equal to undef; however both are false. >The above specifically checks for definedness, as opposed to t

Re: Undef value trouble

2005-02-18 Thread Wiggins d'Anconia
Lawrence Statton wrote: Hello there! As we know and as Larry Wall said in a Camel-book 0 in scalar variable is equal to undef. I have in my database PID columns with unique values. When I try to perform this column data by "while my $pid = $sth->fetchrow_array()" I lost one record because it has

Re: Undef value trouble

2005-02-18 Thread Lawrence Statton
> Hello there! > > As we know and as Larry Wall said in a Camel-book 0 in scalar variable > is equal to undef. I have in my database PID columns with unique values. > When I try to perform this column data by "while my $pid = > $sth->fetchrow_array()" I lost one record because it has the "0" va

Undef value trouble

2005-02-18 Thread Nicolay Vasiliev
Hello there! As we know and as Larry Wall said in a Camel-book 0 in scalar variable is equal to undef. I have in my database PID columns with unique values. When I try to perform this column data by "while my $pid = $sth->fetchrow_array()" I lost one record because it has the "0" value. How cou