in reply to two hashes occupying the same space
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: two hashes occupying the same space
by ikegami (Patriarch) on Oct 28, 2004 at 04:18 UTC | |
|
Re^2: two hashes occupying the same space
by pg (Canon) on Oct 28, 2004 at 04:22 UTC |