> 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 could I pass this situation? >
while ( defined ( my ($pid) = $sth->fetchrow_array ) ) { } -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g Computer software consists of only two components: ones and zeros, in roughly equal proportions. All that is required is to sort them into the correct order. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>