The simplest way I know to swap values for hash keys is with a slice: @hash{ 'foo', 'bar' } = @hash{ 'bar', 'foo'};
After Compline,
Zaxo
In reply to Re: Swapping Two Hash Values
by Zaxo
in thread Swapping Two Hash Values
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |