You could do
%test = reverse @hash;but you would have to look out for collisions with the keys, which could cause you to lose values
cheers
thinker
In reply to Re: key-values swapped
by thinker
in thread key-values swapped
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |