in reply to Re^2: ChainMap of Hashes on CPAN?
in thread ChainMap of Hashes on CPAN?
It's useful to avoid the overhead of concatenating very long hashes if you only need few lookups.
Then I think I'd use:
my $thing; exists $_->{ $key } and $thing = $_->{ $key } for \(%hash1, %hash2, %h +ash3);
and save constructing a whole (class of) objects for something so trivial.
But, I don't ever remember having such a requirement; nor can I think of an actual use-case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: ChainMap of Hashes on CPAN?
by LanX (Saint) on Mar 23, 2013 at 18:42 UTC | |
by BrowserUk (Patriarch) on Mar 23, 2013 at 19:24 UTC | |
by LanX (Saint) on Mar 23, 2013 at 19:31 UTC | |
by BrowserUk (Patriarch) on Mar 23, 2013 at 19:51 UTC | |
by LanX (Saint) on Mar 23, 2013 at 19:55 UTC | |
|
Re^4: ChainMap of Hashes on CPAN?
by McA (Priest) on Mar 23, 2013 at 18:38 UTC |