in reply to Re: Data Structure: HOA or AOH ??
in thread Data Structure: HOA or AOH ??

The input data is stored in an array of hash

No. Please refer to the earlier answers.

Replies are listed 'Best First'.
Re^3: Data Structure: HOA or AOH ??
by umasuresh (Hermit) on Jan 31, 2010 at 17:47 UTC
    ikegami,
    Thanks for pointing out the mistake. I am still trying to wrap my brain around a hash slice.
      It's just like $hash{foo}, except you have multiple keys.
      @hash{qw( foo bar )} = (1, 2);
      is basically the same as
      $hash{foo} = 1; $hash{bar} = 2;

      (I said "basically" because there is a difference. The former uses a list assignment while the latter uses two scalar assignments. List assignments don't return the same as scalar assignments. See Mini-Tutorial: Scalar vs List Assignment Operator)