in reply to Re^2: use array for hash-keys without loop
in thread use array for hash-keys without loop

$hash{@a} = (0) x @a;

Using @hash{@a} (as cdarke did) instead of $hash{@a} avoids the issue...

Replies are listed 'Best First'.
Re^4: use array for hash-keys without loop
by jwkrahn (Abbot) on Mar 11, 2010 at 16:38 UTC

    He must have changed it after I posted because I copied and pasted that from his post.