[Israel.pm] order of keys() and values()
sweisman at pobox.com
Thu Mar 4 02:38:32 PST 2004
i don't remember where it's documented, but i believe it is. i tested myself
to make sure they use the same order because i depend on it in my code. i make
extensive use of hash slicing. or array slicing. or whatever it's called.
On Thu, 04 Mar 2004 12:13:14 +0200 Yuval Yaari <yuval at windax.com> wrote:
> Shlomi, do you have any idea where it is documented?
> Shlomi Fish wrote:
> >On Thursday 04 March 2004 10:09, Yossi.Itzkovich at ecitele.com wrote:
> >>Does the order of the return lists of keys() and values() match ?
> >>I mean is the first element of keys() match the first element of values()
> >Yes, they do. It is also the order that each() returns.
> > Shlomi Fish
> Perl mailing list
> Perl at perl.org.il
More information about the Perl