Help for this page

Select Code to Download


  1. or download this
    %hoh = (
      user1 => {
    ...
        type    => ['type1','type2','type3'],
      },
    );
    
  2. or download this
    for my $user (sort keys %hoh) {
      my @websites = @{ $hoh{$user}{'Website'} };
    ...
      }
      print "\n";
    }
    
  3. or download this
    %hoh = (  # actually now a hash of arrays of hashes (HoAoH)
      user1 => [
    ...
        { Website => 'website3', type => 'type3',},
      ],
    );
    
  4. or download this
    for my $user (sort keys %hoh) {
      print "$user :\n";
    ...
      }
      print "\n";
    }