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
2246 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 --
27. Deutscher Perl- u. Raku -Workshop (Termin wird noch gesucht) 2025 in München.

Winter is Coming

View full thread Telefon Nr.>Name