in reply to Data Structure: HOA or AOH ??

@table{@cols} = split /\t/;
The input data is stored in a array of hash hash slice with each element in the @cols as keys. The reference to the hash table is then stored in @data.
http://www.manning.com/cross/
free download Chapter 2 has a figure explaining just this!
HTH
Update:  @table{@cols} = split /\t/; is a hash slice as others have mentioned!

Replies are listed 'Best First'.
Re^2: Data Structure: HOA or AOH ??
by ikegami (Patriarch) on Jan 31, 2010 at 17:18 UTC

    The input data is stored in an array of hash

    No. Please refer to the earlier answers.

      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)