Help for this page

Select Code to Download


  1. or download this
    
    (my $buddy_count = $dbh->selectrow_array ("SELECT COUNT(*) FROM profil
    +e") ) or die "query failed"
    
  2. or download this
    Also, in a scalar context, an undef is returned if there are no more r
    +ows or if an error occurred. That undef can't be distinguished from a
    +n undef returned because the first field value was NULL. For these re
    +asons you should exercise some caution if you use selectrow_array in 
    +a scalar context, or just don't do that.