|< 1 2 >| | 13 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
my $current = sprintf("%02d%02d%02d",$std, $min, $sek);
my $past = $current - 10000;
### Beide folgenden Varianten werfen den Fehler use of unintialized value ...
#$past = sprintf("0%05d", $past) if($past != /\d{6}/);
#$past = "0$past" if($past !=~ m/\d{6}/);
if($past =~ m/\d{6}/g) {
$past = $past;
}
else {
$past = "0$past";
}
@array=qx{awk '/^$past/,/^$current/'logfile|grep '<pattern>'};
...
$past = sprintf("%06d",($current - 10000));
1
2
3
4
5
while ( $line = <LOG> ) {
if ( $line =~ m/$startzeit/ .. $line =~ m/$endezeit/ ) {
# tu was
}
}
|< 1 2 >| | 13 Einträge, 2 Seiten |