[snip]> if ($row1 not "") {
>  print "row not empty";
> } else {
>   print "row is empty";
[snip]
> if ($row1 ne "") {
>  print "row not empty";
> } else {
>   print "row is empty";
> }    
> 
The if statements differ.
In the first if statement you have : ($row1 not "")
in the second you have : ($row1 ne "") 

I would say:

defined $row ? print "row not empty" :    print "row is empty";




Reply via email to