in reply to Swapping Two Hash Values
The simplest way I know to swap values for hash keys is with a slice: @hash{ 'foo', 'bar' } = @hash{ 'bar', 'foo'};
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Swapping Two Hash Values
by sauoq (Abbot) on May 28, 2003 at 00:53 UTC |