in reply to Re: Array to Hash
in thread Array to Hash
no. no map in void context please. That's what you have the backwards foreach for.
$item{$_} = 1 for @list;
In Section
Seekers of Perl Wisdom
in reply to Re: Array to Hash
in thread Array to Hash
$item{$_} = 1 for @list;