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 truth.
0 compares as numerically equal to undef. However, if warnings
are on, and of course, warnings should be on, there will be a
warning generated, so this comparison is rarely a good idea.
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>