From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21401 invoked from network); 6 May 2003 09:31:43 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 6 May 2003 09:31:43 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CynG-0001Ku-01 for listarch-gnats-devel@sources.redhat.com; Tue, 06 May 2003 05:31:26 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19Cylk-0000nA-00 for help-gnats@gnu.org; Tue, 06 May 2003 05:29:52 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19CylX-0000SI-00 for help-gnats@gnu.org; Tue, 06 May 2003 05:29:39 -0400 Received: from kathmandu.sun.com ([192.18.98.36]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CylK-0000En-00 for help-gnats@gnu.org; Tue, 06 May 2003 05:29:26 -0400 Received: from lego-mail1.Norway.Sun.COM ([129.159.112.5]) by kathmandu.sun.com (8.9.3p2+Sun/8.9.3) with ESMTP id DAA04782; Tue, 6 May 2003 03:29:22 -0600 (MDT) Received: from WIN25-TRO01.sun.com (win25-tro01 [129.159.112.125]) with ESMTP id h469TK51028198; Tue, 6 May 2003 11:29:20 +0200 (MEST) Message-Id: <5.2.1.0.0.20030506105539.03299ed8@ms-etro01-01.norway.sun.com> X-Sender: ys136781@ms-etro01-01.norway.sun.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1.0 (Beta) Date: Tue, 06 May 2003 09:31:00 -0000 To: Lars Henriksen From: Yngve Svendsen In-Reply-To: <20030505174504.GA477164@teapot.netman.dk> References: <5.2.1.1.0.20030429212316.00d0c430@ms-etro01-01.norway.sun.com> <5.2.1.1.0.20030429212316.00d0c430@ms-etro01-01.norway.sun.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: "'help-gnats@gnu.org'" cc: Dieperink Alwin Subject: Re: Categories containing "++" make gnatsweb crash X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q2/txt/msg00041.txt.bz2 At 19:45 05.05.2003 +0200, Lars Henriksen wrote: >I agree that assumptions about characters should be avoided and that the >foreach-construction does this, but please lecture me: is perl-grep >particularly expensive?. I would assume grep is a bit more expensive than the foreach construct, since it builds and returns a list of matched values. However, the primary reason I changed over to a foreach construct is conceptual, I simply don't like using a function (grep) that returns a value which is then simply thrown away. >I have another comment, though. If the field value isn't a known enumeration >value, the value 'unknown' is inserted in the enumeration array and made >the default value for display. But in my original code the insertion of >'unknown' only happened if it wasn't already there (the second grep operation >above). The reason is that 'unknown' may be a perfectly valid enumeration >value (and if it is already there, we don't want to insert it a second time). Good point. I will look at the patch and most likely apply it. - Yngve _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats