in reply to key-values swapped
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: key-values swapped
by Anonymous Monk on Feb 18, 2005 at 10:02 UTC | |
Re^2: key-values swapped
by Tanktalus (Canon) on Feb 18, 2005 at 15:43 UTC |
In Section
Seekers of Perl Wisdom