Help for this page

Select Code to Download


  1. or download this
      foreach my $name (sort keys %fruit_data) {
        # get the color and shape from the data hash
    ...
        # put this row into the loop by reference             
        push(@loop, \%row);
      }
    
  2. or download this
    print "Here we push a hash onto a list, modify the hash and push again
    +\n";
    my @list;
    ...
        print "$key = $$_{$key}\n";
      }
    }