my %hash = (); my @array = qw /fred jim john joe/; @hash{ @array } = @array;
... since you're not worried about the values ;)
"Falling in love with map, one block at a time." - simeon2000
In reply to Re: converting ana array to a hash
by simeon2000
in thread converting ana array to a hash
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |