You must instead move the value, easiest done this way:
The delete removes the value from the old hash location and returns the value, allowing you to put it in the new hash location.$hash{newkey} = delete $hash{oldkey};
In reply to Re: Hash substitution
by suaveant
in thread Hash substitution
by weezer_316
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |