Hi, monks
Without loading any Perl modules, what is the fastest or best way to change key=>value pairs to value=>key pairs of a large hash. Assume no duplication in both key and value fields.. Many thanks
BTW. I am now using the following which looks dummy
$hash1{$hash2{$_}} = $_ for keys %hash2;
lihao
In reply to Question about fast switch hash key-value pairs. by lihao
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |