develooper Front page | perl.perl6.language | Postings from April 2005

Question about $pair.kv

Thread Next
Stevan Little
April 9, 2005 19:04
Question about $pair.kv
Message ID:
Hello all,

Autrijus asked me to look into the correct behavior for $pair.kv 
yesterday, and I have been doing some spring cleaning of the Pugs test 
suite, and found we actually have two conflicting tests for it. So I am 
asking here to see what the official word is so that I can correct our 

One tests shows $pair.kv returning an array with two elements (the key 
and value of the pair). (This is also how Pugs currently implements 

Another test shows $pair.kv returning an array with one element which 
is an array-ref/list which itself has 2 elements (the key and value) in 

I tend to think the former is correct, however a comment over the later 
one indicated that it was stated to be this way on this list. I looked 
though the list, but was unable to find the specific reference.



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