From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27811 invoked from network); 25 May 1999 15:23:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 May 1999 15:23:44 -0000 Received: (qmail 8716 invoked by alias); 25 May 1999 15:23:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6348 Received: (qmail 8709 invoked from network); 25 May 1999 15:23:26 -0000 Message-Id: <9905251455.AA16411@ibmth.df.unipi.it> To: "ZSH workers mailing list" Subject: Re: pws-19: comparing (k) and (I) for hashes In-Reply-To: ""Andrej Borsenkow""'s message of "Tue, 25 May 1999 16:23:50 DFT." <014401bea6a9$71f5f1a0$21c9ca95@mow.siemens.ru> Date: Tue, 25 May 1999 16:55:53 +0200 From: Peter Stephenson "Andrej Borsenkow" wrote: > >From manual I got the impression, that ${(k)...} and ${...[(I)...]} do the > same - both return the keys of matching elements. Cf. (I) description: > > `I' > like ``i', but gives the index of the last match, or all possible > matching keys in an associative array. Actually, I just specifies that it should search the keys (which correspond to the index of an ordinary array). k and v still determine what is returned, except that for I and i the default is to show the key instead of the value. -- Peter Stephenson Tel: +39 050 844536 WWW: http://www.ifh.de/~pws/ Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy