Help for this page

Select Code to Download


  1. or download this
    # functionally speaking, this....
    %hash = ('a' => 1, 'b' => 2, 'c' => 3);
    ...
    
    # is the same as this...
    myfunc('a', 1, 'b', 2, 'c', 3);
    
  2. or download this
    $scalar = 'blue';
    %hash = ('a' => 1, 'b' => 2);
    ...
      my %hash = @_;
      print $hash{'a'};
    }
    
  3. or download this
    %hash = ('a' => 1, 'b' => 2);
    $scalar = 'blue';
    ...
      my($hashref,$scalar) = @_;
      print $hashref->{'a'};
    }