my @arr = 'a' .. 'e'; my %hash; @hash{0 .. $#arr} = @arr;
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re: converting an array to an hash
by LanX
in thread converting an array to an hash
by savio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |