note
LanX
I think the table is not fully accurate in the Hash column.<P>
<UL>
<LI> "Full contents" of <C>%Hash</C> returns a list of pairs
<LI> "Multiple elements" of <C>@Hash{SLICE}</C> returns a list of values
</UL><P>
NB: there is a new feature <C>%Hash{SLICE}</C> to return "Multiple pairs"<P>
<c>
DB<49> @H{a..d}=1..4
DB<50> x %H{d,b}
0 'd'
1 4
2 'b'
3 2
DB<51> x @H{d,b}
0 4
1 2
DB<52>
</c><P>
<H5> edit</H5>
One could argue that for reasons of symmetry there should be <C>@Hash</C> for a "Full list of values".
But this collides with arrays, hence we have the operators [DOC://values|<tt>values</tt>] and [DOC://keys|<tt>keys</tt>] <P>
<div class="pmsig"><div class="pmsig-708738">
<!--nowiki--><p>Cheers Rolf<br>
<sub>(addicted to the Perl Programming Language :)
<br> <i> [id://1153804|Wikisyntax for the Monastery]</i>
</sub>
<!--nowiki-->
</div></div><!-- Wiki2Monks {"version":1.161} -->
11137614
11137622