in reply to Re: Re: Re: Re: Re: Re: Better way to search?
in thread Better way to search?

Yes. See:
my @exts = qw/foo bar baz/; my %exts; @exts{@exts} = @exts; use Data::Dumper; print Dumper \%exts;
produces:
$VAR1 = { 'foo' => 'foo', 'baz' => 'baz', 'bar' => 'bar' };
I might point out that nothing answers a question so well as testing a bit of code out yourself. :)