in reply to Re^2: Statistics Data Structure Hash of Arrays, Arrays of Array
in thread Statistics Data Structure Hash of Arrays, Arrays of Array

... I am editing my question

Please see How do I change/delete my post? for site etiquette and protocol regarding such changes.

Update: Please also see the Short, Self Contained, Correct (Compilable), Example discussion.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: Statistics Data Structure Hash of Arrays, Arrays of Array
by Anonymous Monk on Nov 10, 2016 at 23:25 UTC

    quick question: what does

    @t{@h} = @d;

    do and what do you think it should do?

      What I think it should do (and what it does) is to assign a set of values in  @d to a set of keys  @h of the  %t hash (a slice of that hash).

      c:\@Work\Perl>perl -wMstrict -le "use Data::Dump qw(dd); ;; my @h = qw(uno dos tres); my @d = qw(one two three); ;; my %t; @t{@h} = @d; ;; dd \%t; " { dos => "two", tres => "three", uno => "one" }
      Please see Slices in perldata.


      Give a man a fish:  <%-{-{-{-<