in reply to ChainMap of Hashes on CPAN?

Different approaches, but both of these seem close.

Replies are listed 'Best First'.
Re^2: ChainMap of Hashes on CPAN?
by LanX (Saint) on Mar 23, 2013 at 17:02 UTC
    Excellent! :)

    especially Tie::Hash::Layered seems identical in most features (maybe not in the order)

    Thanks!

    Just this

    # tie the new hash with the initialised hashes above tie %hash, 'Tie::Hash::Layered', (\%test1, \%test2);

    could be simplified to

    tie %hash, 'Tie::Hash::Layered', \( %test1, %test2 );

    Cheers Rolf

    ( addicted to the Perl Programming Language)