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

It's often about perceived performance, I believe.

Sure, it's a clarity question here. What does that have to do with avoiding loops? I'd take

$b{$_}=1 for @a;
over
@b{@a} = (1)x@a;

even though the other might be considered to have no loop. (It has three while the first has two.)

Actually, I'd take the following since it incorporates the my:

my %b = map { $_ => 1 } @a;