##
$db_update_cmd = $db_update_cmd."cat$cat=1,";
####
$db_update_cmd .= "cat$cat=1,";
####
if ( $preference =~ tr/0//)
####
if ( $preference =~ /0/ )
# should be a more robust regexp to only capture '0', this is just to show the right operator