You can easily combine the two by inverting the first with a hash slice, @hash1{values %hash1} = keys %hash1; Be aware that you will lose some keys if there are duplicate values.
After Compline,
Zaxo
In reply to Re: two hashes occupying the same space
by Zaxo
in thread two hashes occupying the same space
by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |