in reply to Re: How can one change the keys of a hash to an alternative set of keys?
in thread How can one change the keys of a hash to an alternative set of keys?

No that's too dangerous!

If old and new key set overlap you'll get ugly bugs.

Defensive programming!!!

Cheers Rolf

PS: Je suis Charlie!

  • Comment on Re^2: How can one change the keys of a hash to an alternative set of keys?

Replies are listed 'Best First'.
Re^3: How can one change the keys of a hash to an alternative set of keys?
by tkguifan (Scribe) on Feb 05, 2015 at 05:36 UTC
    This is a special case, because for some reason the two set of keys are guaranteed to uniquely identify the data structures behind them ( they are alternative descriptions of the same data ). They are constructed in such a way, that there can be no overlap ( in fact this takes quite a bit of effort, but ultimately it is done in a foolproof way ). It depends on the circumstances which set of keys is more convenient to access the data elements.
Re^3: How can one change the keys of a hash to an alternative set of keys?
by pme (Monsignor) on Feb 05, 2015 at 07:47 UTC
    This is true in general. But here I gave a specific comment on a specific question.