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.
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.
|
---|
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 |
In Section
Seekers of Perl Wisdom