foreach (@ary) {$hash{$_} = 1; } [download]
In reply to Re: Array to Hash by BBQ in thread Array to Hash by Anonymous Monk