laziness, impatience, and hubris | |
PerlMonks |
Re: key-values swappedby thinker (Parson) |
on Feb 18, 2005 at 09:44 UTC ( [id://432235]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|