- or download this
my @list2 = qw(one two three);
my %lookup_hash;
...
use Data::Dumper;
print Dumper \%lookup_hash;
- or download this
$VAR1 = {
'three' => undef,
'one' => 'foo',
'two' => undef
};
- or download this
@lookup_hash{@list2} = ();
- or download this
@lookup_hash{@list2} = ('foo') x @list2;