@hash{@cols} = map [$_], @values;
The speed can be measured by Benchmark.
In reply to Re: Creating hash of arrays (in a faster way)
by choroba
in thread Creating hash of arrays (in a faster way)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |