(the only way to avoid information loss is a hash of arrays $h2{val}=[k1,k2,k3,...] but this requires more code.)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^3: Is there a way to switch a hash values <> keys with a slice?
by LanX
in thread Is there a way to switch a hash values <> keys with a slice?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |