Help for this page

Select Code to Download


  1. or download this
    %hash = ( 'a' => 1, 'b' => 2 );
    print @hash{'a','b'}; # prints '12'
    
  2. or download this
    $hasref = { 'a' => 1, 'b' => 2 };
    # not sure... is it $hashref->{'a','b'}? That just yields 'uninitializ
    +ed'.