$hash{@a} = (0) x @a;
Using @hash{@a} (as cdarke did) instead of $hash{@a} avoids the issue...
In reply to Re^3: use array for hash-keys without loop
by almut
in thread use array for hash-keys without loop
by piccard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |