in reply to How can one change the keys of a hash to an alternative set of keys?
Copy to new hash in loop with changed key.
To answer the tread title, you can't. Keys are immutable. They can be deleted or created but they can't be changed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can one change the keys of a hash to an alternative set of keys?
by choroba (Cardinal) on Feb 04, 2015 at 22:18 UTC | |
by LanX (Saint) on Feb 04, 2015 at 22:23 UTC | |
by Anonymous Monk on Feb 04, 2015 at 23:32 UTC | |
by LanX (Saint) on Feb 04, 2015 at 23:38 UTC |