in reply to Hash substitution
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};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash substitution
by Narveson (Chaplain) on Oct 09, 2008 at 12:49 UTC |