if ($allocated_to) { push @where_clause, "UPPER(ALLOCATED_TO) LIKE UPPER('%$allocated_to%')"; push @entries, 'ALLOCATED_TO'; }