develooper Front page | perl.perl5.porters | Postings from December 2017

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

Thread Next
December 12, 2017 06:56
Re: [perl #90240] keys(@array) gives too many indices
Message ID:
keys(@array) has a defined meaning that is consistent with the
array-as-unbroken-sequence model that is used in most places.  To change
it to implement the equivalent operation for the sparse-array model
would be disruptive.  We shouldn't do that.  If you really like the
discouraged sparse arrays and want a key-listing operation for them, you
should implement that as an XS module and put it on CPAN.  This ticket
should be closed.


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