Leser: 2
![]() |
![]() |
8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/perl
open(DATEI, "<./Konfigurationsdaten/20060310.DOCFIELD") || die "Fehler beim öffnen von Datei $datei - $!";
my @Zeilen = <DATEI>;
close(DATEI);
my %hash2;
my $old_doc;
my %hash;
foreach (@Zeilen){
if (/(\w+)\;(\d+)\;(\d+)/){
$dokuart = $1;
$zahl1 = $2;
$zahl2 = $3;
if(!defined $old_doc){
$old_doc = $dokuart;
}
if($dokuart!=$old_doc){
$hash2{$old_doc}=\%hash;
%hash; #<---vielleicht liegt hier das problem
}
open(DATEI, "<./Konfigurationsdaten/20060310.REPOSITORY") || die "Fehler beim öffnen von Datei $datei - $!";
my @Zeilen2 = <DATEI>;
close(DATEI);
foreach(@Zeilen2){
if(/^$zahl2;(^[;]+)/){
$hash{$zahl1}=$1;
}
}
}
$old_doc = $dokuart;
}
foreach my $ele ( keys(%hash2)){
print "$ele\n";
foreach my $ele2 (keys %{ $hash2{$ele} }){
print "$ele2\n";
print "$hash2{$ele}{$ele2}\n";
}
}
$dokuart != $old_docu
$dokuart ne $old_docu
if(/^$zahl2\;(^[;]+)/)
if(/^$zahl2\;(\w+)/)
if(/^$zahl2\;(^[;]+)/)
if(/^$zahl2\;(\w+)/)
if(/^$zahl2\;([^;]+)/)
if(/^$zahl2\;(^[;]+)/)
if (/([\w\$]+)\;(\d+)\;(\d+)\;/){
![]() |
![]() |
8 Einträge, 1 Seite |