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.
In reply to Re^3: ChainMap of Hashes on CPAN?
by BrowserUk
in thread ChainMap of Hashes on CPAN?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |