Thread hash of arrays: Ist ein String in mehreren Arrays ? (9 answers)
Opened by schnuffi at 2003-11-10 17:12

pq
 2003-11-10 17:33
#70872 #70872
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
my ($version,$solver) = @ARGV;
my %platforms = map {$_ => 1} @{$tosca{$version}};
my %platforms2 = map {$_ => 1} @{$solver{$solver}};
my @platforms = grep {$platforms2{$_}} keys %platforms;
print "@platforms\n";                        
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread hash of arrays: Ist ein String in mehreren Arrays ?