[Israel.pm] order of keys() and values()

Scott Weisman 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.

scott

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?
> 
>   --Yuval
> 
> Shlomi Fish wrote:
> 
> >On Thursday 04 March 2004 10:09, Yossi.Itzkovich at ecitele.com wrote:
> >  
> >
> >>Hi,
> >>
> >>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.
> >
> >Regards,
> >
> >	Shlomi Fish
> >  
> >
> >>Thanks
> >>Yossi
> >>
> 
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://www.perl.org.il/mailman/listinfo/perl
> 
> 



More information about the Perl mailing list