8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
push( @{$users}->{$channelname}->{MEMBERS}},$username);
################################
@a = keys of %channel;
@b = ();
################################
foreach my $a of (@a) {
@b = @{$channel}->{$a}->{MEMBERS};
}
1
2
3
4
5
my %Users = (
'cooldie' => ['DarkRoom', 'Lounge', 'Perl'],
'Eisflamme' => ['Perl', 'Lounge'],
'LordHoto' => ['Lounge'],
);
1
2
3
4
5
my %Rooms = (
'Lounge' => ['cooldie', 'Eisflamme', 'LordHoto'],
'Perl' => ['cooldie', 'Eisflamme'],
'DarkRoom' => ['cooldie'],
);
1
2
3
4
5
6
while(my ($username, $rooms) = each %Users) {
print "User $username:\n";
foreach my $room (@{$rooms}) {
print "\t$room\n";
}
}
8 Einträge, 1 Seite |