Leser: 1
5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
...
blah
...
my $count=0;
foreach (@spalten_filter) {
if ($spalten_filter[$count] =~ s/^mittel_/summe_/) {
$zeile_file[$filter[$count]]=$zeile_file[$filter[$count]]*($zeile_file[$index_zeit_summe_intervall]/3600);
}
$count++;
}
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
@spalten_filter(
zeit_tag
zeit_jahrestag
summe_E_wr__0
perf__0
mittel_tag_T_m__0
mittel_P_sg__0
mittel_G_m__0)
@zeile_file=(
2006-01-03
86400
3
0.327581
1
1
1
0.0381944
1
1
1
1
1
1167.5
0.687204
6.853344
1384.4688
476.688
0.843284
0.0824089
0.0977238 )
@filter=(
0
2
13
14
15
16
17)
print "etogo $count = $zeile_file[$filter[$count]]=$zeile_file[$filter[$count]]*($zeile_file[$index_zeit_summe_intervall]/3600) !!!",$zeile_file[$filter[$count]],"\n";
1
2
3
etogo 4 = 6.853344=6.853344*(86400/3600) !!!6.853344
etogo 5 = 1384.4688=1384.4688*(86400/3600) !!!1384.4688
etogo 6 = 476.688=476.688*(86400/3600) !!!476.688
$zeile_file[$filter[$count]]=$zeile_file[$filter[$count]]*($zeile_file[$index_zeit_summe_intervall]/3600);
1
2
3
$count = 0;
$filter[$count] = $filter[0] = 0;
$zeile_file[$filter[$count]] = $zeile_file[0] = '2006-01-03';
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my @spalten_filter = qw(
zeit_tag
zeit_jahrestag
summe_E_wr__0
perf__0
mittel_tag_T_m__0
mittel_P_sg__0
mittel_G_m__0);
my @zeile_file=qw(
2006-01-03
86400
3
0.327581
1
1
1
0.0381944
1
1
1
1
1
1167.5
0.687204
6.853344
1384.4688
476.688
0.843284
0.0824089
0.0977238 );
my @filter=qw(
0
2
13
14
15
16
17);
my $index_zeit_summe_intervall = 1;
my $count=0;
foreach (@spalten_filter) {
if ($spalten_filter[$count] =~ s/^mittel_/summe_/) {
$zeile_file[$filter[$count]]=$zeile_file[$filter[$count]]*($zeile_file[$index_zeit_summe_intervall]/3600);
}
$count++;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$VAR1 = [
'2006-01-03',
'86400',
'3',
'0.327581',
'1',
'1',
'1',
'0.0381944',
'1',
'1',
'1',
'1',
'1',
'1167.5',
'0.687204',
'164.480256',
'33227.2512',
'11440.512',
'0.843284',
'0.0824089',
'0.0977238'
];
5 Einträge, 1 Seite |