![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |
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
my $state = 'start';
my $crit = 3;
sub getDatensatz{
my ($entry) = @_;
my $bool = 0;
my $set = '';
my @steigend;
for my $line(split(/\r?\n/,$entry)){
chomp $line;
my $wert = (split(/\s+/,$line))[-1];
if ($wert >= $crit and $state ne 'high') {
$state = 'high';
}
elsif ($wert < $crit and $state ne 'low') {
if ($state eq 'high') {
$bool = 1;
}
$state = 'low';
}
unless($bool){
push(@steigend,$line);
}
else{
$set .= $line."\n";
}
}
$set .= $_."\n" for(@steigend);
$set .= "\n\n";
return $set;
}
1
2
Use of uninitialized value in numeric lt (<) at ./sortier_neu.pl line 55, <$fh> line 9921.
Use of uninitialized value in numeric ge (>=) at ./sortier_neu.pl line 55, <$fh> line 9921.
if ($wert >= $crit and $state ne 'high') {
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |