Nov 8, 2006 #1 margarmo Programmer Nov 8, 2006 2 US how do I change a particular key and keep the value in a hash?
Nov 8, 2006 1 #2 MillerH Programmer Oct 20, 2006 919 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.