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

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

Thread Next
July 4, 2012 14:24
Re: [perl #90240] keys(@array) gives too many indices
Message ID:
[Quoting Eric Brine via RT, on July 4 2012, 13:38, in "[perl #90240] keys(@"]
> On Wed Jul 04 04:50:19 2012, jv wrote:
> > 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.

keys() should return the keys, we agree fully. Except that I consider
keys that have never been assigned a value as nonexistent.

-- Johan

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About