develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #90240] keys(@array) gives too many indices

Thread Previous
From:
Eric Brine via RT
Date:
July 4, 2012 13:39
Subject:
[perl #90240] keys(@array) gives too many indices
Message ID:
rt-3.6.HEAD-28836-1341434337-14.90240-15-0@perl.org
On Wed Jul 04 04:50:19 2012, jv wrote:
> On Tue Jul 03 23:02:49 2012, ikegami@adaelis.com wrote:
> > On Tue Jul 03 17:17:05 2012, doy wrote:
> > > Eric, was this patch ever written?
> > 
> > Both the ticket and the patches were created. It is #105278
> 
> Regardless of whether delete/exists on arrays will be actually
> deprecated -- I still consider it a lost opportunity to not add value to
> keys(@array) over 0..$#array.

Feel free to create a function that does what you want. keys should
return the keys as far as I'm concerned.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=90240

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About