Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
       @totals{qw(a b c)} += (1,2,3);
    }
    print Dumper \%totals;
    
  2. or download this
    %totals = (
       'a' => 10,
       'b' => 20,
       'c' => 30,
    );
    
  3. or download this
    (
       'a' => undef,
       'b' => undef,
       'c' => 30,
    );