Howto convert array to hash The easiest and most idiomatic way is: my %hash = map { $_, 1 } @array; Published by Michael Stepanov Site owner and admin :) View all posts by Michael Stepanov