produces:my @exts = qw/foo bar baz/; my %exts; @exts{@exts} = @exts; use Data::Dumper; print Dumper \%exts;
I might point out that nothing answers a question so well as testing a bit of code out yourself. :)$VAR1 = { 'foo' => 'foo', 'baz' => 'baz', 'bar' => 'bar' };
In reply to Re (6): Better way to search?
by btrott
in thread Better way to search?
by r.joseph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |