Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings; 
    ...
             -values => 'v2');
             
    print Dumper(\%a);
    
  2. or download this
    $VAR1 = {
              '-keys' => 'v1',
              '-values' => 'v2'
            };
    
  3. or download this
    my %a = (-keys   , 'v1',
             -values , 'v2');
    
  4. or download this
    Not enough arguments for keys at C:\gash.pl line 6, near "keys   ,"
    Not enough arguments for values at C:\gash.pl line 7, near "values ,"
    
  5. or download this
    my %a = (-xkeys   , 'v1',
             -xvalues , 'v2');
    
  6. or download this
    $VAR1 = {
              '-xvalues' => 'v2',
              '-xkeys' => 'v1'
            };