Paul Seamons skribis 2005-04-15 11:50 (-0600):
> my %h = <a 1 b 2 c 3>;
> {
>   temp %h{$_} ++ for %h.keys;

Just make that two lines. Is that so bad?

    temp %h;
    %h.values »++;

>   %h.say; # values are incremented still
> }
> %h.say; # values are back to original values


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to