Help for this page

Select Code to Download


  1. or download this
    for my $hashRef ( @$my_array_ref ) # Curlies aren't needed here since 
    +$my_array_ref is a simple variable name
    {
      ...
    }
    
  2. or download this
    $results->{$transactionType}{$purchasedThing} += $amountSpent
    
  3. or download this
    for my $transactionType (sort keys %$results)
    {
      for my $purchasedThings (sort keys %{ $results->{$transactionType} }
    +) # Curlies here to mark out what to dereference
    ...
          );
      }
    }