good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Modifying hash keys via the control variableby NetWallah (Canon) |
on Dec 16, 2013 at 15:03 UTC ( [id://1067341]=note: print w/replies, xml ) | Need Help?? |
You are better off creating a new hash, since both keys and values are being modified.
Notes: 1 ) Untested 2) This is a Shallow copy of the inner hash. 3) '$list' is a confusing name for the key When in doubt, mumble; when in trouble, delegate; when in charge, ponder. -- James H. Boren
In Section
Seekers of Perl Wisdom
|
|