in reply to
need explanation of @foo{@bar} = (); (hash slice)
Tilly explained the hash slice usage already, but for an alternative solution & discussion, check out
Perl Idioms Explained - keys %{{map{$_=>1}@list}}
from the Tutorials section.
Comment on
Re: need explanation of @foo{@bar} = (); (hash slice)
In Section
Seekers of Perl Wisdom