Help for this page

Select Code to Download


  1. or download this
    my @array;
    for my $tab ( @things ) {
    ...
      ## As you've seen, this leaves everything pointing at the same array
      $data{ $tab } = \@array;
    }
    
  2. or download this
    for my $tab ( @things ) {
      my @array = frobnicate( $tab );
      $data{ $tab } = \@array;
    }