Mailing List Archive

[perl #90240] keys(@array) gives too many indices
Eric, was this patch ever written?

-doy

---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=90240
[perl #90240] keys(@array) gives too many indices [ In reply to ]
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


---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=90240
[perl #90240] keys(@array) gives too many indices [ In reply to ]
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