in reply to Hash space/ time tradeoff

if ( defined ?attr1Hash{$attr1}){ my $key ="attr1.attr2.attr3"; $arrayRef = $fullHash{$key}; }
You don't need to build your own keys wtih perl's multidimensional array emulation:
$arrayRef = $fullHash{$attr1,$attr2,$attr3};
See perlvar

Replies are listed 'Best First'.
Re^2: Hash space/ time tradeoff
by BrowserUk (Patriarch) on Dec 30, 2013 at 19:04 UTC
    See perlvar

    I think you mean perldata.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      I think you mean..
      No, I meant what I said...I didn't even know about (or forgot about?) that section in perldata. It's funny that the section you linked to has a link to the section I linked to, but not vice-versa. Wouldn't it be nice if they linked to each other?