Help for this page

Select Code to Download


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