From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3425 invoked from network); 10 Mar 2000 10:05:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 Mar 2000 10:05:41 -0000 Received: (qmail 25686 invoked by alias); 10 Mar 2000 10:05:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10046 Received: (qmail 25678 invoked from network); 10 Mar 2000 10:05:35 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Sven Wischnowsky" , Subject: RE: ${_comps[(K)*diff*]} Date: Fri, 10 Mar 2000 13:04:29 +0300 Message-ID: <001701bf8a78$065eadc0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: <200003100954.KAA03102@beta.informatik.hu-berlin.de> > > > > What you miss is that [(k)...] and [(K)...] don't do pattern-matching > > on the keys. I have an idea what's going wrong, but I don't have time > > to fix it right now. > > (I don't see anything wrong here, what am I missing?) > k If used in a subscript on a parameter that is not an associative array, this behaves like `r', but if used on an association, it makes the keys be interpreted as patterns and returns the first value whose key matches the EXP. K On an associtation this is like `k' but returns all values whose keys match the EXP. On other types of parameters this has the same effect as `R'. -andrej