6 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
print "Schleife2 start"; foreach (@temp) { my ( $qip3, $zip3, $qp3, $zp3, $qt3, $zt3, $qm3, $zm3 ) = split( / /, $_ ); my $da = "0"; #my $temp = $_; foreach (@monthly_temp) { my ( $qip4, $zip4, $qp4, $zp4, $qt4, $zt4, $qm4, $zm4 ) = split( / /, $_ ); if ($qip3 eq $qip4 && $zip3 eq $zip4 && $qp3 eq $qp4 && $zp3 eq $zp4 ){$da = "1";} } if ( $da eq "0" ) { chomp($_); push( @monthly_temp, "$_" ); } } print " ende\n";
1
2
my @array = grep{my $i = $_; !grep{$_ eq $i}@monthly_temp}@temp;
push(@monthly_temp,@array);
1
2
3
4
5
my %hash;
@hash{@monthly_temp} = 1;
for(@temp){
push(@monthly_temp,$_) unless(exists $hash{$_});
}
1
2
my @array = grep{my $i = $_; !grep{$_ eq $i}@monthly_temp}@temp;
push(@monthly_temp,@array);
1
2
3
4
5
my %hash;
@hash{@monthly_temp} = 1;
for(@temp){
push(@monthly_temp,$_) unless(exists $hash{$_});
}
6 Einträge, 1 Seite |