Thread Telefon Nr.>Name (17 answers)
Opened by darkman at 2004-06-06 19:31

Relais
 2004-06-06 21:00
#83073 #83073
User since
2003-08-06
2244 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use Data::Dumper;

my %hash = (
Titanic => [ "Anno 1912", "Southampton" ],
Cheopspyramide => [ "Anno ca. -3000 plusminus 1500", "Gizeh" ],
Perl => [ "Kamel" ],
);

my %reverse_lookup;

foreach my $arrayref ( keys %hash ) {
foreach my $element ( @{ $hash{$arrayref} } ) {
$reverse_lookup{$element} = $arrayref;
}
}

print Dumper \%reverse_lookup;
Erst denken, dann posten --
26. Deutscher Perl- u. Raku -Workshop 15. bis 17.04.2024 in Frankfurt/M.

Winter is Coming

View full thread Telefon Nr.>Name