Using @hash{ @array } = (1) x @array would be more idiomatic. There's no need to get map involved since you really aren't changing the values of the array at all.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re^6: keys of hash
by Fletch
in thread keys of hash
by prafull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |