Nov 8, 2006 #1 margarmo Programmer Joined Nov 8, 2006 Messages 2 Location US how do I change a particular key and keep the value in a hash?
Nov 8, 2006 1 #2 MillerH Programmer Joined Oct 20, 2006 Messages 919 Location US http://perldoc.perl.org/functions/delete.html Code: $hash{NewKey} = delete $hash{OldKey} The 'NewKey' will now have the value of the 'OldKey'. You'll have to explain better if this is not what you were talking about. Upvote 0 Downvote
http://perldoc.perl.org/functions/delete.html Code: $hash{NewKey} = delete $hash{OldKey} The 'NewKey' will now have the value of the 'OldKey'. You'll have to explain better if this is not what you were talking about.