in reply to Hash space/ time tradeoff
You don't need to build your own keys wtih perl's multidimensional array emulation:if ( defined ?attr1Hash{$attr1}){ my $key ="attr1.attr2.attr3"; $arrayRef = $fullHash{$key}; }
See perlvar$arrayRef = $fullHash{$attr1,$attr2,$attr3};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash space/ time tradeoff
by BrowserUk (Patriarch) on Dec 30, 2013 at 19:04 UTC | |
by runrig (Abbot) on Dec 30, 2013 at 19:58 UTC |