I'm curious. You say you want

"...2 hashes that point to the same referenced hash."

Using the references approach does exactly that...both point to exact same entity so they are both just aliases for the same thing.

I think that is not exactly what you wanted, just inadvertantly maybe described it wrong? Looks like what you want are two hashes...a working hash and a default hash (my alternative words, of course, not the OP's) and that you want to ensure that if the working hash isn't proper or gets messed up, then you want to reset it (in essence) to the default, "clean" version?

Looking at the various response (and to your response to at least one of the respnoses) it seems that everyone understood what you were trying to do. I wasn't as insightful and headed off on the wrong track (my fault, not the OP's).

ack Albuquerque, NM

In reply to Re: Using the same hashes as different object variables by ack
in thread Using the same hashes as different object variables by mrguy123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.