Associative array/Merging: Difference between revisions

m
→‎{{header|Perl 6}}: remove some extraneous parenthesis
(→‎{{header|Perl 6}}: Add a Perl 6 example)
m (→‎{{header|Perl 6}}: remove some extraneous parenthesis)
Line 161:
 
<lang perl6># Show original hashes
say my %base = ( :name('Rocket Skates'), :price<12.75>, :color<yellow> );
say my %update = ( :price<15.25>, :color<red>, :year<1974> );
 
# Need to assign to anonymous hash (or a named hash) to get the desired results and avoid mutating
10,333

edits