in reply to Re^2: use array for hash-keys without loopin thread use array for hash-keys without loop
Note that your code can be simplified to
my %y; $y{shift(@x)} = 1 while @x; [download]
my %y = map { $_ => 1 } @x; [download]